]> git.lizzy.rs Git - rust.git/commitdiff
tidy: don't short-circuit on license error
authorEric Huss <eric@huss.org>
Thu, 23 May 2019 20:33:08 +0000 (13:33 -0700)
committerEric Huss <eric@huss.org>
Thu, 23 May 2019 20:33:08 +0000 (13:33 -0700)
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.

src/tools/tidy/src/deps.rs

index 8626ba060bf713f66ddc37332d9774db9681340b..6f9623d18d20913927eab4eeb1d9e8f27a588f4d 100644 (file)
@@ -241,7 +241,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");
 }