diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2020-09-17 21:32:02 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2020-09-17 21:32:02 +0100 |
| commit | 076e52d0c9cb7856186d33203e33e04a3db898c4 (patch) | |
| tree | a3c2cc8f10f6817c50fedaa879d5d12cf1b1d663 /src | |
| parent | 7bdb5dee7bac15458b10b148e9e24968e633053e (diff) | |
| download | rust-076e52d0c9cb7856186d33203e33e04a3db898c4.tar.gz rust-076e52d0c9cb7856186d33203e33e04a3db898c4.zip | |
Put bit qualifier before mir/diff
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 965b20f5202..7fcbfe9bd0d 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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(), |
