about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-22 17:11:53 +0000
committerbors <bors@rust-lang.org>2022-04-22 17:11:53 +0000
commitcef882cc9dfae7980a1712609f8d00bfaf78062c (patch)
tree11c14fb2f5ca4419f2b8d9db1e2aa5f527cceec7
parented22428b7292db18f8e0b90e06b91a802c0bf647 (diff)
parenta96bc7af122ca2f84ea282e748339a0531392cd8 (diff)
downloadrust-cef882cc9dfae7980a1712609f8d00bfaf78062c.tar.gz
rust-cef882cc9dfae7980a1712609f8d00bfaf78062c.zip
Auto merge of #8731 - Alexendoo:dogfood-allow-unknown-lints, r=xFrednet
dogfood: allow unknown lints when not running with `internal` feature

changelog: none

https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/unknown.20lint.20in.20test.20dogfood_clippy

It's only a warning so this wasn't causing the test to fail, but if you had another error somewhere or used `--nocapture` the extra warnings would be shown
-rw-r--r--tests/dogfood.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/dogfood.rs b/tests/dogfood.rs
index 67af9d05bf4..eb97d1933d5 100644
--- a/tests/dogfood.rs
+++ b/tests/dogfood.rs
@@ -80,9 +80,13 @@ fn run_clippy_for_package(project: &str) {
         .args(&["-D", "clippy::pedantic"])
         .arg("-Cdebuginfo=0"); // disable debuginfo to generate less data in the target dir
 
-    // internal lints only exist if we build with the internal feature
     if cfg!(feature = "internal") {
+        // internal lints only exist if we build with the internal feature
         command.args(&["-D", "clippy::internal"]);
+    } else {
+        // running a clippy built without internal lints on the clippy source
+        // that contains e.g. `allow(clippy::invalid_paths)`
+        command.args(&["-A", "unknown_lints"]);
     }
 
     let output = command.output().unwrap();