File tree 1 file changed +3
-2
lines changed
src/tools/compiletest/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -697,14 +697,15 @@ fn iter_header_extra(
697
697
// First try to accept `ui_test` style comments
698
698
} else if let Some ( ( lncfg, ln) ) = line_directive ( comment, ln) {
699
699
it ( lncfg, ln, line_number) ;
700
- } else if mode == Mode :: Ui && line_directive ( "//" , ln) . is_some ( ) {
700
+ } else if mode == Mode :: Ui && matches ! ( line_directive( "//" , ln) , Some ( ( Some ( _ ) , _ ) ) ) {
701
701
// We have a comment that's *successfully* parsed as an legacy-style directive.
702
702
// We emit an error here to warn the user.
703
703
* poisoned = true ;
704
704
eprintln ! (
705
- "error: detected legacy-style directives in ui test: {}:{}, please use `ui_test`-style directives `//@` instead" ,
705
+ "error: detected legacy-style directives in ui test: {}:{}, please use `ui_test`-style directives `//@` instead:{:#?} " ,
706
706
testfile. display( ) ,
707
707
line_number,
708
+ line_directive( "//" , ln) ,
708
709
) ;
709
710
return ;
710
711
}
You can’t perform that action at this time.
0 commit comments