diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-10-25 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-10-25 15:16:43 +0200 |
| commit | a9fad1c357b8d9d1f2fb04b8906c326adb462898 (patch) | |
| tree | c421c8648916c4090e0cb954c80bc6735b649a7d | |
| parent | c2ef35161fc7477b38f2e556be2fd6d85d9f4905 (diff) | |
| download | rust-a9fad1c357b8d9d1f2fb04b8906c326adb462898.tar.gz rust-a9fad1c357b8d9d1f2fb04b8906c326adb462898.zip | |
compiletest: Display compilation errors in mir-opt tests
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index ac270a1f0ba..87d0404e7d8 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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(); |
