Skip to content

Commit 12c0915

Browse files
authored
Rollup merge of #122838 - workingjubilee:less-catholic-blessings-to-prevent-incremental-protests, r=matthiaskrgr
Avoid noop rewrite of issues.txt Fixes #122834 r? `@matthiaskrgr`
2 parents 5cbb319 + c00920c commit 12c0915

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)