diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-25 19:51:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-25 19:51:16 +0200 |
| commit | beba52207ee38c2b55d3a2f186ae5187ae1ad341 (patch) | |
| tree | 4a18862463d14885ddf7abe1ead6fbd955626640 | |
| parent | 26a9e08f0cffa534d16deb10ad9a2a483c789ad8 (diff) | |
| parent | a9fad1c357b8d9d1f2fb04b8906c326adb462898 (diff) | |
| download | rust-beba52207ee38c2b55d3a2f186ae5187ae1ad341.tar.gz rust-beba52207ee38c2b55d3a2f186ae5187ae1ad341.zip | |
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.
| -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(); |
