Skip to content

Commit f67c683

Browse files
committed
Include the test name when reporting that an expected line was not found in a mir-opt test.
1 parent 698b956 commit f67c683

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2735,10 +2735,12 @@ impl<'test> TestCx<'test> {
27352735
panic!(
27362736
"Did not find expected line, error: {}\n\
27372737
Expected Line: {:?}\n\
2738+
Test Name: {}\n\
27382739
Expected:\n{}\n\
27392740
Actual:\n{}",
27402741
extra_msg,
27412742
expected_line,
2743+
test_name,
27422744
expected_content,
27432745
normalize_all
27442746
);

0 commit comments

Comments
 (0)