Skip to content

Commit c00920c

Browse files
Avoid noop rewrite of issues.txt
This can trigger incremental rebuilds since incr doesn't realize nothing changed.
1 parent 7d01878 commit c00920c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/tidy/src/ui_tests.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ pub fn check(root_path: &Path, bless: bool, bad: &mut bool) {
183183
}
184184
});
185185

186-
// if an excluded file is renamed, it must be removed from this list
186+
// if there are any file names remaining, they were moved on the fs.
187+
// our data must remain up to date, so it must be removed from issues.txt
187188
// do this automatically on bless, otherwise issue a tidy error
188-
if bless {
189+
if bless && !remaining_issue_names.is_empty() {
189190
let issues_txt_header = r#"
190191
/*
191192
============================================================

0 commit comments

Comments
 (0)