Skip to content

Commit 6fa92ea

Browse files
authored
Rollup merge of #135375 - lolbinarycat:bootstrap-allow-stage0-rustdoc-js, r=jieyouxu
allow rustdoc-js tests to be run at stage0 this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
2 parents fcf81b8 + af2247c commit 6fa92ea

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

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

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

0 commit comments

Comments
 (0)