about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2024-08-25 10:53:28 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2024-08-26 09:52:10 +0000
commit2190c288e2455bce98dde643267ce53fd3412edb (patch)
treee00a844417403911687678b62bbc6e4d16eefbcc
parentd9794a9af63b5cf59bf9a7bfa65191a6d2a1e122 (diff)
downloadrust-2190c288e2455bce98dde643267ce53fd3412edb.tar.gz
rust-2190c288e2455bce98dde643267ce53fd3412edb.zip
remove use of RUSTC_BOOTSTRAP and cargo nightly features
-rw-r--r--tests/run-make/rustc-crates-on-stable/rmake.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/run-make/rustc-crates-on-stable/rmake.rs b/tests/run-make/rustc-crates-on-stable/rmake.rs
index 66f0b2c8126..513c1288287 100644
--- a/tests/run-make/rustc-crates-on-stable/rmake.rs
+++ b/tests/run-make/rustc-crates-on-stable/rmake.rs
@@ -8,20 +8,17 @@ fn main() {
         // Use the stage0 beta cargo for the compilation (it shouldn't really matter which cargo we
         // use)
         let cargo = cargo()
-            // This is required to allow using nightly cargo features (public-dependency) with beta
-            // cargo
-            .env("RUSTC_BOOTSTRAP", "1")
-            .env("RUSTC_STAGE", "0") // Ensure `proc-macro2`'s nightly detection is disabled
+            // Ensure `proc-macro2`'s nightly detection is disabled
+            .env("RUSTC_STAGE", "0")
             .env("RUSTC", rustc_path())
+            // We want to disallow all nightly features to simulate a stable build
+            .env("RUSTFLAGS", "-Zallow-features=")
             .arg("build")
             .arg("--manifest-path")
             .arg(source_root().join("Cargo.toml"))
             .args(&[
                 "--config",
                 r#"workspace.exclude=["library/core"]"#,
-                // We want to disallow all nightly features, to simulate a stable build
-                // public-dependency needs to be enabled for cargo to work
-                "-Zallow-features=public-dependency",
                 // Avoid depending on transitive rustc crates
                 "--no-default-features",
                 // Emit artifacts in this temporary directory, not in the source_root's `target`