@@ -16,7 +16,6 @@ const ENTRY_LIMIT: usize = 900;
16
16
// FIXME: The following limits should be reduced eventually.
17
17
18
18
const ISSUES_ENTRY_LIMIT : usize = 1676 ;
19
- const ROOT_ENTRY_LIMIT : usize = 859 ;
20
19
21
20
const EXPECTED_TEST_FILE_EXTENSIONS : & [ & str ] = & [
22
21
"rs" , // test source files
@@ -62,14 +61,10 @@ fn check_entries(tests_path: &Path, bad: &mut bool) {
62
61
}
63
62
}
64
63
65
- let ( mut max, mut max_root , mut max_issues) = ( 0usize , 0usize , 0usize ) ;
64
+ let ( mut max, mut max_issues) = ( 0usize , 0usize ) ;
66
65
for ( dir_path, count) in directories {
67
- // Use special values for these dirs.
68
- let is_root = tests_path. join ( "ui" ) == dir_path;
69
66
let is_issues_dir = tests_path. join ( "ui/issues" ) == dir_path;
70
- let ( limit, maxcnt) = if is_root {
71
- ( ROOT_ENTRY_LIMIT , & mut max_root)
72
- } else if is_issues_dir {
67
+ let ( limit, maxcnt) = if is_issues_dir {
73
68
( ISSUES_ENTRY_LIMIT , & mut max_issues)
74
69
} else {
75
70
( ENTRY_LIMIT , & mut max)
@@ -86,12 +81,6 @@ fn check_entries(tests_path: &Path, bad: &mut bool) {
86
81
) ;
87
82
}
88
83
}
89
- if ROOT_ENTRY_LIMIT > max_root {
90
- tidy_error ! (
91
- bad,
92
- "`ROOT_ENTRY_LIMIT` is too high (is {ROOT_ENTRY_LIMIT}, should be {max_root})"
93
- ) ;
94
- }
95
84
if ISSUES_ENTRY_LIMIT > max_issues {
96
85
tidy_error ! (
97
86
bad,
0 commit comments