mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Build nightly rustfmt using --all-features in CI
Previously we were only building rustfmt with default features in CI. We recently received a report that rustfmt was unable to compile with the `generic-simd` feature, which is not enabled by default. To prevent a similar situation in the future we'll start build nightly rustfmt with all features enabled.
This commit is contained in:
committed by
Caleb Cartwright
parent
177ef66947
commit
641d4f5898
@@ -6,7 +6,11 @@ rustc -Vv || exit /b 1
|
||||
cargo -V || exit /b 1
|
||||
|
||||
:: Build and test main crate
|
||||
cargo build --locked || exit /b 1
|
||||
if "%CFG_RELEASE_CHANNEL%"=="nightly" (
|
||||
cargo build --locked --all-features || exit /b 1
|
||||
) else (
|
||||
cargo build --locked || exit /b 1
|
||||
)
|
||||
cargo test || exit /b 1
|
||||
|
||||
:: Build and test other crates
|
||||
|
||||
@@ -10,7 +10,11 @@ rustc -Vv
|
||||
cargo -V
|
||||
|
||||
# Build and test main crate
|
||||
cargo build --locked
|
||||
if [ "$CFG_RELEASE_CHANNEL" == "nightly" ]; then
|
||||
cargo build --locked --all-features
|
||||
else
|
||||
cargo build --locked
|
||||
fi
|
||||
cargo test
|
||||
|
||||
# Build and test other crates
|
||||
|
||||
Reference in New Issue
Block a user