File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ fn is_close_bracket(c: char) -> bool {
29
29
matches ! ( c, ')' | ']' | '}' )
30
30
}
31
31
32
- const START_COMMENT : & str = "// tidy-alphabetical-start" ;
32
+ // Don't let tidy check this here :D
33
+ const START_COMMENT : & str = concat ! ( "// tidy-alphabetical" , "-start" ) ;
33
34
const END_COMMENT : & str = "// tidy-alphabetical-end" ;
34
35
35
36
fn check_section < ' a > (
@@ -47,7 +48,7 @@ fn check_section<'a>(
47
48
if line. contains ( START_COMMENT ) {
48
49
tidy_error ! (
49
50
bad,
50
- "{file}:{} found `// tidy-alphabetical-start ` expecting `// tidy-alphabetical-end `" ,
51
+ "{file}:{} found `{START_COMMENT} ` expecting `{END_COMMENT} `" ,
51
52
line_idx
52
53
)
53
54
}
@@ -102,10 +103,7 @@ pub fn check(path: &Path, bad: &mut bool) {
102
103
if line. contains ( START_COMMENT ) {
103
104
check_section ( file, & mut lines, bad) ;
104
105
if lines. peek ( ) . is_none ( ) {
105
- tidy_error ! (
106
- bad,
107
- "{file}: reached end of file expecting `// tidy-alphabetical-end`"
108
- )
106
+ tidy_error ! ( bad, "{file}: reached end of file expecting `{END_COMMENT}`" )
109
107
}
110
108
}
111
109
}
Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ fn main() {
90
90
check ! ( edition, & compiler_path) ;
91
91
check ! ( edition, & library_path) ;
92
92
93
+ check ! ( alphabetical, & src_path) ;
93
94
check ! ( alphabetical, & compiler_path) ;
95
+ check ! ( alphabetical, & library_path) ;
94
96
95
97
let collected = {
96
98
while handles. len ( ) >= concurrency. get ( ) {
You can’t perform that action at this time.
0 commit comments