Skip to content

Commit

Permalink
Rollup merge of #135375 - lolbinarycat:bootstrap-allow-stage0-rustdoc…
Browse files Browse the repository at this point in the history
…-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.
  • Loading branch information
matthiaskrgr authored Jan 12, 2025
2 parents fcf81b8 + af2247c commit 6fa92ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,10 @@ impl Step for Compiletest {
return;
}

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

0 comments on commit 6fa92ea

Please sign in to comment.