@@ -12,10 +12,10 @@ use std::path::{Path, PathBuf};
12
12
// should all be 1000 or lower. Limits significantly smaller than 1000 are also
13
13
// desirable, because large numbers of files are unwieldy in general. See issue
14
14
// #73494.
15
- const ENTRY_LIMIT : usize = 900 ;
15
+ const ENTRY_LIMIT : u32 = 900 ;
16
16
// FIXME: The following limits should be reduced eventually.
17
17
18
- const ISSUES_ENTRY_LIMIT : usize = 1676 ;
18
+ const ISSUES_ENTRY_LIMIT : u32 = 1676 ;
19
19
20
20
const EXPECTED_TEST_FILE_EXTENSIONS : & [ & str ] = & [
21
21
"rs" , // test source files
@@ -52,7 +52,7 @@ const EXTENSION_EXCEPTION_PATHS: &[&str] = &[
52
52
] ;
53
53
54
54
fn check_entries ( tests_path : & Path , bad : & mut bool ) {
55
- let mut directories: HashMap < PathBuf , usize > = HashMap :: new ( ) ;
55
+ let mut directories: HashMap < PathBuf , u32 > = HashMap :: new ( ) ;
56
56
57
57
for dir in Walk :: new ( & tests_path. join ( "ui" ) ) {
58
58
if let Ok ( entry) = dir {
@@ -61,7 +61,7 @@ fn check_entries(tests_path: &Path, bad: &mut bool) {
61
61
}
62
62
}
63
63
64
- let ( mut max, mut max_issues) = ( 0usize , 0usize ) ;
64
+ let ( mut max, mut max_issues) = ( 0 , 0 ) ;
65
65
for ( dir_path, count) in directories {
66
66
let is_issues_dir = tests_path. join ( "ui/issues" ) == dir_path;
67
67
let ( limit, maxcnt) = if is_issues_dir {
0 commit comments