Skip to content

Commit bd884d8

Browse files
committed
Prevent rmake.rs from using any nightly/unstable features
1 parent ec3cde2 commit bd884d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/compiletest/src/runtest/run_make.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ impl TestCx<'_> {
105105
.expect("stage0 rustc is required to run run-make tests");
106106
let mut rustc = Command::new(&stage0_rustc);
107107
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")
108113
.arg("-o")
109114
.arg(&recipe_bin)
110115
// Specify library search paths for `run_make_support`.

0 commit comments

Comments
 (0)