Skip to content

Commit 5926490

Browse files
committed
remove use of RUSTC_BOOTSTRAP and cargo nightly features
1 parent 520a504 commit 5926490

File tree

1 file changed

+4
-7
lines changed
  • tests/run-make/rustc-crates-on-stable

1 file changed

+4
-7
lines changed

tests/run-make/rustc-crates-on-stable/rmake.rs

+4-7
Original file line numberDiff line numberDiff 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`

0 commit comments

Comments
 (0)