@@ -8,7 +8,6 @@ pub struct MiroptTestFile {
88}
99
1010pub struct MiroptTest {
11- pub run_filecheck : bool ,
1211 pub suffix : String ,
1312 pub files : Vec < MiroptTestFile > ,
1413 /// Vec of passes under test to be dumped
@@ -57,13 +56,15 @@ pub fn files_for_miropt_test(
5756 let test_crate = testfile. file_stem ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) . replace ( '-' , "_" ) ;
5857
5958 let suffix = output_file_suffix ( testfile, bit_width, panic_strategy) ;
60- let mut run_filecheck = true ;
6159 let mut passes = Vec :: new ( ) ;
6260
6361 for l in test_file_contents. lines ( ) {
62+ // FIXME(Zalathar): Remove this `skip-filecheck` migration error in 2027,
63+ // or perhaps earlier if it seems no longer useful.
6464 if l. starts_with ( "// skip-filecheck" ) {
65- run_filecheck = false ;
66- continue ;
65+ panic ! (
66+ "error: `// skip-filecheck` is no longer supported, use `//@ skip-filecheck` instead."
67+ ) ;
6768 }
6869 if l. starts_with ( "// EMIT_MIR " ) {
6970 let test_name = l. trim_start_matches ( "// EMIT_MIR " ) . trim ( ) ;
@@ -128,10 +129,7 @@ pub fn files_for_miropt_test(
128129
129130 out. push ( MiroptTestFile { expected_file, from_file, to_file } ) ;
130131 }
131- if !run_filecheck && l. trim_start ( ) . starts_with ( "// CHECK" ) {
132- panic ! ( "error: test contains filecheck directive but is marked `skip-filecheck`" ) ;
133- }
134132 }
135133
136- MiroptTest { run_filecheck , suffix, files : out, passes }
134+ MiroptTest { suffix, files : out, passes }
137135}
0 commit comments