about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-17 08:07:25 +0800
committer许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-17 08:08:13 +0800
commit097cb1a9559f9e1cd7d4a41f5f214070a678bbc2 (patch)
treef1b7dca6743c62fbee31eed1579f12df4bc88913
parent99db2737c91d1e4b36b2ffc17dcda5878bcae625 (diff)
downloadrust-097cb1a9559f9e1cd7d4a41f5f214070a678bbc2.tar.gz
rust-097cb1a9559f9e1cd7d4a41f5f214070a678bbc2.zip
compiletest: require `COMPILETEST_FORCE_STAGE0` for `./x test rustdoc-js --stage 0`
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index fdc1f30b859..9f3e4d9cc89 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -1638,10 +1638,7 @@ impl Step for Compiletest {
             return;
         }
 
-        if builder.top_stage == 0
-            && env::var("COMPILETEST_FORCE_STAGE0").is_err()
-            && self.mode != "js-doc-test"
-        {
+        if builder.top_stage == 0 && env::var("COMPILETEST_FORCE_STAGE0").is_err() {
             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