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