about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-01-30 22:28:28 -0500
committerBen Kimock <kimockb@gmail.com>2024-02-06 23:36:05 -0500
commit2116ed723d178313cac1ff829d5a7417bba1cd3b (patch)
tree19089ae81925666f8344f87aca63ff50838bde86 /src
parent4451bf4d678c67755c153995d638559a76469af2 (diff)
downloadrust-2116ed723d178313cac1ff829d5a7417bba1cd3b.tar.gz
rust-2116ed723d178313cac1ff829d5a7417bba1cd3b.zip
Tweak a few mir-opt tests instead of using -Clink-dead-code
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs1
-rw-r--r--src/tools/compiletest/src/runtest.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index e1a1c416ae9..baf1b5a4a1a 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -1470,7 +1470,6 @@ impl Step for MirOpt {
         };
 
         if builder.config.cmd.bless() {
-            crate::utils::cc_detect::find_target(builder, self.compiler.host);
             // All that we really need to do is cover all combinations of 32/64-bit and unwind/abort,
             // but while we're at it we might as well flex our cross-compilation support. This
             // selection covers all our tier 1 operating systems and architectures using only tier
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index 00ebd91f387..ed1c559e1f6 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -2468,7 +2468,6 @@ impl<'test> TestCx<'test> {
                     "-Zlint-mir",
                     "-Zdump-mir-exclude-pass-number",
                     "--crate-type=rlib",
-                    "-Clink-dead-code",
                 ]);
                 if let Some(pass) = &self.props.mir_unit_test {
                     rustc.args(&["-Zmir-opt-level=0", &format!("-Zmir-enable-passes=+{}", pass)]);