This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
tests/run-make/rustc-crates-on-stable Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,17 @@ fn main() {
88 // Use the stage0 beta cargo for the compilation (it shouldn't really matter which cargo we
99 // use)
1010 let cargo = cargo ( )
11- // This is required to allow using nightly cargo features (public-dependency) with beta
12- // cargo
13- . env ( "RUSTC_BOOTSTRAP" , "1" )
14- . env ( "RUSTC_STAGE" , "0" ) // Ensure `proc-macro2`'s nightly detection is disabled
11+ // Ensure `proc-macro2`'s nightly detection is disabled
12+ . env ( "RUSTC_STAGE" , "0" )
1513 . env ( "RUSTC" , rustc_path ( ) )
14+ // We want to disallow all nightly features to simulate a stable build
15+ . env ( "RUSTFLAGS" , "-Zallow-features=" )
1616 . arg ( "build" )
1717 . arg ( "--manifest-path" )
1818 . arg ( source_root ( ) . join ( "Cargo.toml" ) )
1919 . args ( & [
2020 "--config" ,
2121 r#"workspace.exclude=["library/core"]"# ,
22- // We want to disallow all nightly features, to simulate a stable build
23- // public-dependency needs to be enabled for cargo to work
24- "-Zallow-features=public-dependency" ,
2522 // Avoid depending on transitive rustc crates
2623 "--no-default-features" ,
2724 // Emit artifacts in this temporary directory, not in the source_root's `target`
You can’t perform that action at this time.
0 commit comments