File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3181,7 +3181,7 @@ impl<'test> TestCx<'test> {
3181
3181
let trimmed = test_name. trim_end_matches ( ".diff" ) ;
3182
3182
let test_against = format ! ( "{}.after.mir" , trimmed) ;
3183
3183
from_file = format ! ( "{}.before.mir" , trimmed) ;
3184
- expected_file = format ! ( "{}{}" , test_name , bit_width) ;
3184
+ expected_file = format ! ( "{}{}.diff " , trimmed , bit_width) ;
3185
3185
assert ! (
3186
3186
test_names. next( ) . is_none( ) ,
3187
3187
"two mir pass names specified for MIR diff"
@@ -3199,7 +3199,7 @@ impl<'test> TestCx<'test> {
3199
3199
from_file = format ! ( "{}.{}.mir" , test_name, first_pass) ;
3200
3200
to_file = Some ( second_file) ;
3201
3201
} else {
3202
- expected_file = format ! ( "{}{}" , test_name, bit_width) ;
3202
+ expected_file = format ! ( "{}{}.mir " , test_name. trim_end_matches ( ".mir" ) , bit_width) ;
3203
3203
from_file = test_name. to_string ( ) ;
3204
3204
assert ! (
3205
3205
test_names. next( ) . is_none( ) ,
You can’t perform that action at this time.
0 commit comments