@@ -887,11 +887,7 @@ fn iter_header(
887
887
}
888
888
}
889
889
890
- let comment = if testfile. extension ( ) . is_some_and ( |e| e == "rs" ) {
891
- if mode == Mode :: Ui && suite == "ui" { "//@" } else { "//" }
892
- } else {
893
- "#"
894
- } ;
890
+ let comment = if testfile. extension ( ) . is_some_and ( |e| e == "rs" ) { "//@" } else { "#" } ;
895
891
896
892
let mut rdr = BufReader :: with_capacity ( 1024 , rdr) ;
897
893
let mut ln = String :: new ( ) ;
@@ -918,7 +914,7 @@ fn iter_header(
918
914
// First try to accept `ui_test` style comments
919
915
} else if let Some ( ( header_revision, directive) ) = line_directive ( comment, ln) {
920
916
it ( HeaderLine { header_revision, original_line, directive, line_number } ) ;
921
- } else if mode == Mode :: Ui && suite == "ui" && !REVISION_MAGIC_COMMENT_RE . is_match ( ln) {
917
+ } else if !REVISION_MAGIC_COMMENT_RE . is_match ( ln) {
922
918
let Some ( ( _, rest) ) = line_directive ( "//" , ln) else {
923
919
continue ;
924
920
} ;
@@ -938,7 +934,7 @@ fn iter_header(
938
934
// directive. We emit an error here to warn the user.
939
935
* poisoned = true ;
940
936
eprintln ! (
941
- "error: detected legacy-style directives in ui test: {}:{}, please use `ui_test`-style directives `//@` instead:{:#?}" ,
937
+ "error: detected legacy-style directives in compiletest test: {}:{}, please use `ui_test`-style directives `//@` instead:{:#?}" ,
942
938
testfile. display( ) ,
943
939
line_number,
944
940
line_directive( "//" , ln) ,
@@ -951,7 +947,7 @@ fn iter_header(
951
947
// directive. We emit an error here to warn the user.
952
948
* poisoned = true ;
953
949
eprintln ! (
954
- "error: detected legacy-style directives in ui test: {}:{}, please use `ui_test`-style directives `//@` instead:{:#?}" ,
950
+ "error: detected legacy-style directives in compiletest test: {}:{}, please use `ui_test`-style directives `//@` instead:{:#?}" ,
955
951
testfile. display( ) ,
956
952
line_number,
957
953
line_directive( "//" , ln) ,
@@ -1252,11 +1248,8 @@ pub fn make_test_description<R: Read>(
1252
1248
1253
1249
if let Some ( ( _, post) ) = original_line. trim_start ( ) . split_once ( "//" ) {
1254
1250
let post = post. trim_start ( ) ;
1255
- if post. starts_with ( "ignore-tidy" )
1256
- && config. mode == Mode :: Ui
1257
- && config. suite == "ui"
1258
- {
1259
- // not handled by compiletest under the ui test mode and ui test suite.
1251
+ if post. starts_with ( "ignore-tidy" ) {
1252
+ // Not handled by compiletest.
1260
1253
} else {
1261
1254
decision ! ( cfg:: handle_ignore( config, ln) ) ;
1262
1255
}
0 commit comments