We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rmake.rs
1 parent da69926 commit 0dc4978Copy full SHA for 0dc4978
src/tools/compiletest/src/runtest/run_make.rs
@@ -272,6 +272,11 @@ impl TestCx<'_> {
272
};
273
let mut rustc = Command::new(bootstrap_rustc);
274
rustc
275
+ // `rmake.rs` **must** be buildable by a stable compiler, it may not use *any* unstable
276
+ // library or compiler features. Here, we force the stage 0 rustc to consider itself as
277
+ // a stable-channel compiler via `RUSTC_BOOTSTRAP=-1` to prevent *any* unstable
278
+ // library/compiler usages, even if stage 0 rustc is *actually* a nightly rustc.
279
+ .env("RUSTC_BOOTSTRAP", "-1")
280
.arg("-o")
281
.arg(&recipe_bin)
282
// Specify library search paths for `run_make_support`.
0 commit comments