Skip to content

Commit 7a4a169

Browse files
authored
Rollup merge of rust-lang#61096 - ehuss:tidy-license-short-circuit, r=Centril
tidy: don't short-circuit on license error If there is more than one license error, tidy would only print the first error. This changes it so that all license errors are printed.
2 parents c67da54 + 46ffb6a commit 7a4a169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/deps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ pub fn check(path: &Path, bad: &mut bool) {
244244
}
245245

246246
let toml = dir.path().join("Cargo.toml");
247-
*bad = *bad || !check_license(&toml);
247+
*bad = !check_license(&toml) || *bad;
248248
}
249249
assert!(saw_dir, "no vendored source");
250250
}

0 commit comments

Comments
 (0)