Skip to content

Commit beba522

Browse files
authored
Rollup merge of #117163 - tmiasko:compiletest-mir-opt, r=compiler-errors
compiletest: Display compilation errors in mir-opt tests Previously when compilation failed the `check_mir_dump` would panic first, so we would never display the compiler output.
2 parents 26a9e08 + a9fad1c commit beba522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3999,10 +3999,10 @@ impl<'test> TestCx<'test> {
39993999
let passes = std::mem::take(&mut test_info.passes);
40004000

40014001
let proc_res = self.compile_test_with_passes(should_run, Emit::Mir, passes);
4002-
self.check_mir_dump(test_info);
40034002
if !proc_res.status.success() {
40044003
self.fatal_proc_rec("compilation failed!", &proc_res);
40054004
}
4005+
self.check_mir_dump(test_info);
40064006

40074007
if let WillExecute::Yes = should_run {
40084008
let proc_res = self.exec_compiled_test();

0 commit comments

Comments
 (0)