File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -507,8 +507,10 @@ pub fn check(path: &Path, bad: &mut bool) {
507
507
. any ( |directive| matches ! ( directive, Directive :: Ignore ( _) ) ) ;
508
508
let has_alphabetical_directive = line. contains ( "tidy-alphabetical-start" )
509
509
|| line. contains ( "tidy-alphabetical-end" ) ;
510
- let has_recognized_directive =
511
- has_recognized_ignore_directive || has_alphabetical_directive;
510
+ let has_tidy_watcher_directive = line. contains ( "tidy-keep-sync-with" ) ;
511
+ let has_recognized_directive = has_recognized_ignore_directive
512
+ || has_alphabetical_directive
513
+ || has_tidy_watcher_directive;
512
514
if contains_potential_directive && ( !has_recognized_directive) {
513
515
err ( "Unrecognized tidy directive" )
514
516
}
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ fn test_span_hash_has_some_text_in_line_before_second_tag() {
35
35
let source = r#"
36
36
RUN ./build-clang.sh
37
37
ENV CC=clang CXX=clang++
38
- # tidy-ticket-perf-commit
38
+ # tidy-keep-sync-with=tidy- ticket-perf-commit
39
39
# rustc-perf version from 2023-05-30
40
40
ENV PERF_COMMIT 8b2ac3042e1ff2c0074455a0a3618adef97156b1
41
- # tidy-ticket-perf-commit
41
+ # tidy-keep-sync-with=tidy- ticket-perf-commit
42
42
RUN curl -LS -o perf.zip https://github.com/rust-lang/rustc-perf/archive/$PERF_COMMIT.zip && \
43
43
unzip perf.zip && \
44
44
mv rustc-perf-$PERF_COMMIT rustc-perf && \
You can’t perform that action at this time.
0 commit comments