Skip to content

Commit

Permalink
compiletest: Display compilation errors in mir-opt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Oct 25, 2023
1 parent c2ef351 commit a9fad1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3999,10 +3999,10 @@ impl<'test> TestCx<'test> {
let passes = std::mem::take(&mut test_info.passes);

let proc_res = self.compile_test_with_passes(should_run, Emit::Mir, passes);
self.check_mir_dump(test_info);
if !proc_res.status.success() {
self.fatal_proc_rec("compilation failed!", &proc_res);
}
self.check_mir_dump(test_info);

if let WillExecute::Yes = should_run {
let proc_res = self.exec_compiled_test();
Expand Down

0 comments on commit a9fad1c

Please sign in to comment.