Skip to content

Commit 097cb1a

Browse files
committed
compiletest: require COMPILETEST_FORCE_STAGE0 for ./x test rustdoc-js --stage 0
1 parent 99db273 commit 097cb1a

File tree

1 file changed

+1
-4
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-4
lines changed

src/bootstrap/src/core/build_steps/test.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1638,10 +1638,7 @@ impl Step for Compiletest {
16381638
return;
16391639
}
16401640

1641-
if builder.top_stage == 0
1642-
&& env::var("COMPILETEST_FORCE_STAGE0").is_err()
1643-
&& self.mode != "js-doc-test"
1644-
{
1641+
if builder.top_stage == 0 && env::var("COMPILETEST_FORCE_STAGE0").is_err() {
16451642
eprintln!("\
16461643
ERROR: `--stage 0` runs compiletest on the beta compiler, not your local changes, and will almost always cause tests to fail
16471644
HELP: to test the compiler, use `--stage 1` instead

0 commit comments

Comments
 (0)