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
This commit is contained in:
commit
cef882cc9d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user