File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -874,13 +874,22 @@ fn contains_ui_error_patterns(file_path: &Path, keep_lto_tests: bool) -> Result<
874874 if line. contains ( "//[" ) && line. contains ( "]~" ) {
875875 return Ok ( true ) ;
876876 }
877+
877878 // Check for pass markers
878879 if [ "//@ check-pass" , "//@ build-pass" , "//@ run-pass" ]
879880 . iter ( )
880881 . any ( |marker| line. contains ( marker) )
881882 {
882883 has_pass_marker = true ;
883884 }
885+
886+ if [ "//@ ignore-auxiliary" ]
887+ . iter ( )
888+ . any ( |marker| line. contains ( marker) )
889+ {
890+ return Ok ( false ) ;
891+ }
892+
884893 }
885894 let file_path = file_path. display ( ) . to_string ( ) ;
886895 if file_path. contains ( "ambiguous-4-extern.rs" ) {
@@ -892,8 +901,6 @@ fn contains_ui_error_patterns(file_path: &Path, keep_lto_tests: bool) -> Result<
892901 return Ok ( true ) ;
893902 }
894903
895- // If there are no error patterns, check for pass markers
896- // Keep tests with pass markers, remove tests without them
897904 Ok ( !has_pass_marker)
898905}
899906
You can’t perform that action at this time.
0 commit comments