Rollup merge of #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.
This commit is contained in:
Mazdak Farrokhzad 2019-05-25 04:55:30 +02:00 committed by GitHub
commit 835281fb04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ pub fn check(path: &Path, bad: &mut bool) {
}
let toml = dir.path().join("Cargo.toml");
*bad = *bad || !check_license(&toml);
*bad = !check_license(&toml) || *bad;
}
assert!(saw_dir, "no vendored source");
}