mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Put bit qualifier before mir/diff
This commit is contained in:
parent
7bdb5dee7b
commit
076e52d0c9
@ -3181,7 +3181,7 @@ impl<'test> TestCx<'test> {
|
||||
let trimmed = test_name.trim_end_matches(".diff");
|
||||
let test_against = format!("{}.after.mir", trimmed);
|
||||
from_file = format!("{}.before.mir", trimmed);
|
||||
expected_file = format!("{}{}", test_name, bit_width);
|
||||
expected_file = format!("{}{}.diff", trimmed, bit_width);
|
||||
assert!(
|
||||
test_names.next().is_none(),
|
||||
"two mir pass names specified for MIR diff"
|
||||
@ -3199,7 +3199,7 @@ impl<'test> TestCx<'test> {
|
||||
from_file = format!("{}.{}.mir", test_name, first_pass);
|
||||
to_file = Some(second_file);
|
||||
} else {
|
||||
expected_file = format!("{}{}", test_name, bit_width);
|
||||
expected_file = format!("{}{}.mir", test_name.trim_end_matches(".mir"), bit_width);
|
||||
from_file = test_name.to_string();
|
||||
assert!(
|
||||
test_names.next().is_none(),
|
||||
|
Loading…
Reference in New Issue
Block a user