Skip to content

Commit 076e52d

Browse files
committed
Put bit qualifier before mir/diff
1 parent 7bdb5de commit 076e52d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3181,7 +3181,7 @@ impl<'test> TestCx<'test> {
31813181
let trimmed = test_name.trim_end_matches(".diff");
31823182
let test_against = format!("{}.after.mir", trimmed);
31833183
from_file = format!("{}.before.mir", trimmed);
3184-
expected_file = format!("{}{}", test_name, bit_width);
3184+
expected_file = format!("{}{}.diff", trimmed, bit_width);
31853185
assert!(
31863186
test_names.next().is_none(),
31873187
"two mir pass names specified for MIR diff"
@@ -3199,7 +3199,7 @@ impl<'test> TestCx<'test> {
31993199
from_file = format!("{}.{}.mir", test_name, first_pass);
32003200
to_file = Some(second_file);
32013201
} else {
3202-
expected_file = format!("{}{}", test_name, bit_width);
3202+
expected_file = format!("{}{}.mir", test_name.trim_end_matches(".mir"), bit_width);
32033203
from_file = test_name.to_string();
32043204
assert!(
32053205
test_names.next().is_none(),

0 commit comments

Comments
 (0)