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> {
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( ) ,
You can’t perform that action at this time.
0 commit comments