about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-12-15 09:55:44 +0100
committerRalf Jung <post@ralfj.de>2024-12-15 09:55:44 +0100
commit4795399ab6f11b648822f4ebdc06499a4d038888 (patch)
treee2ac966b3f682981a19b64ae6ac9633d5b43d6ca
parent4790a435cbcb55c94ccdef51bf7a9b2e55824528 (diff)
downloadrust-4795399ab6f11b648822f4ebdc06499a4d038888.tar.gz
rust-4795399ab6f11b648822f4ebdc06499a4d038888.zip
bootstrap: make ./x test error-index work
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index 30fdea7e19e..8d9d2b6b6a1 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -2442,7 +2442,9 @@ impl Step for ErrorIndex {
     const ONLY_HOSTS: bool = true;
 
     fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
-        run.path("src/tools/error_index_generator")
+        // Also add `error-index` here since that is what appears in the error message
+        // when this fails.
+        run.path("src/tools/error_index_generator").alias("error-index")
     }
 
     fn make_run(run: RunConfig<'_>) {