File tree 1 file changed +4
-7
lines changed
tests/run-make/rustc-crates-on-stable
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,17 @@ fn main() {
8
8
// Use the stage0 beta cargo for the compilation (it shouldn't really matter which cargo we
9
9
// use)
10
10
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" )
15
13
. env ( "RUSTC" , rustc_path ( ) )
14
+ // We want to disallow all nightly features to simulate a stable build
15
+ . env ( "RUSTFLAGS" , "-Zallow-features=" )
16
16
. arg ( "build" )
17
17
. arg ( "--manifest-path" )
18
18
. arg ( source_root ( ) . join ( "Cargo.toml" ) )
19
19
. args ( & [
20
20
"--config" ,
21
21
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" ,
25
22
// Avoid depending on transitive rustc crates
26
23
"--no-default-features" ,
27
24
// 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