summary refs log tree commit diff
path: root/src/bootstrap/builder.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-04-27 23:43:33 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-06-18 09:58:29 -0500
commitfca6dbd9afac228b91749a5ab5c2ba2d8bfcb6ef (patch)
treeb034277adea2da14e21c6bb7624dc15c4fe4b2ad /src/bootstrap/builder.rs
parent0da0a2196d2d7b37bd5e07ce18b03568e2711f39 (diff)
downloadrust-fca6dbd9afac228b91749a5ab5c2ba2d8bfcb6ef.tar.gz
rust-fca6dbd9afac228b91749a5ab5c2ba2d8bfcb6ef.zip
Add tests for fixed bugs
Diffstat (limited to 'src/bootstrap/builder.rs')
-rw-r--r--src/bootstrap/builder.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index c3ee30b65fe..3b20cc4ca39 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -348,7 +348,11 @@ impl StepDescription {
             eprintln!(
                 "note: if you are adding a new Step to bootstrap itself, make sure you register it with `describe!`"
             );
+            #[cfg(not(test))]
             std::process::exit(1);
+            #[cfg(test)]
+            // so we can use #[should_panic]
+            panic!()
         }
     }
 }