We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rmake.rs
1 parent ec3cde2 commit bd884d8Copy full SHA for bd884d8
src/tools/compiletest/src/runtest/run_make.rs
@@ -105,6 +105,11 @@ impl TestCx<'_> {
105
.expect("stage0 rustc is required to run run-make tests");
106
let mut rustc = Command::new(&stage0_rustc);
107
rustc
108
+ // `rmake.rs` **must** be buildable by a stable compiler, it may not use *any* unstable
109
+ // library or compiler features. Here, we force the stage 0 rustc to consider itself as
110
+ // a stable-channel compiler via `RUSTC_BOOTSTRAP=-1` to prevent *any* unstable
111
+ // library/compiler usages, even if stage 0 rustc is *actually* a nightly rustc.
112
+ .env("RUSTC_BOOTSTRAP", "-1")
113
.arg("-o")
114
.arg(&recipe_bin)
115
// Specify library search paths for `run_make_support`.
0 commit comments