diff options
| author | Alex Macleod <alex@macleod.io> | 2022-04-22 13:05:53 +0100 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2022-04-22 13:15:11 +0100 |
| commit | a96bc7af122ca2f84ea282e748339a0531392cd8 (patch) | |
| tree | 7cea636fb4cb005d4c831d2e60a171d211d95612 | |
| parent | cf68cadc4556c5139e12c082e2c05fa716553e2b (diff) | |
| download | rust-a96bc7af122ca2f84ea282e748339a0531392cd8.tar.gz rust-a96bc7af122ca2f84ea282e748339a0531392cd8.zip | |
dogfood: allow unknown lints when not running with `internal` feature
| -rw-r--r-- | tests/dogfood.rs | 6 |
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(); |
