File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -81,21 +81,20 @@ fn deny_new_top_level_ui_tests(check: &mut RunningCheck, tests_path: &Path) {
8181 // - <https://github.com/rust-lang/rust/issues/73494>
8282 // - <https://github.com/rust-lang/rust/issues/133895>
8383
84- let top_level_ui_tests = walkdir:: WalkDir :: new ( tests_path)
85- . min_depth ( 1 )
86- . max_depth ( 1 )
84+ let top_level_ui_tests = ignore:: WalkBuilder :: new ( tests_path)
85+ . max_depth ( Some ( 1 ) )
8786 . follow_links ( false )
88- . same_file_system ( true )
89- . into_iter ( )
87+ . build ( )
9088 . flatten ( )
9189 . filter ( |e| {
9290 let file_name = e. file_name ( ) ;
9391 file_name != ".gitattributes" && file_name != "README.md"
9492 } )
95- . filter ( |e| !e. file_type ( ) . is_dir ( ) ) ;
93+ . filter ( |e| !e. file_type ( ) . is_some_and ( |f| f. is_dir ( ) ) ) ;
94+
9695 for entry in top_level_ui_tests {
9796 check. error ( format ! (
98- "ui tests should be added under meaningful subdirectories: `{}`" ,
97+ "ui tests should be added under meaningful subdirectories: `{}`, see https://github.com/rust-lang/compiler-team/issues/902 " ,
9998 entry. path( ) . display( )
10099 ) ) ;
101100 }
You can’t perform that action at this time.
0 commit comments