]> git.lizzy.rs Git - rust.git/commitdiff
remove unused code
authorTshepang Mbambo <tshepang@gmail.com>
Fri, 25 Nov 2022 14:28:18 +0000 (16:28 +0200)
committerTshepang Mbambo <tshepang@gmail.com>
Fri, 25 Nov 2022 14:28:18 +0000 (16:28 +0200)
src/bootstrap/bin/rustc.rs

index 76a3e5f08b16ce5e89673e912f8956a296f08201..1d5260228121bd18ce80dcb003f23e6b41d0284f 100644 (file)
@@ -97,9 +97,7 @@ fn main() {
         // This... is a bit of a hack how we detect this. Ideally this
         // information should be encoded in the crate I guess? Would likely
         // require an RFC amendment to RFC 1513, however.
-        if crate_name == Some("panic_abort")
-            || crate_name == Some("compiler_builtins") && stage != "0"
-        {
+        if crate_name == Some("panic_abort") {
             cmd.arg("-C").arg("panic=abort");
         }