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