We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
internal
1 parent cf68cad commit a96bc7aCopy full SHA for a96bc7a
tests/dogfood.rs
@@ -80,9 +80,13 @@ fn run_clippy_for_package(project: &str) {
80
.args(&["-D", "clippy::pedantic"])
81
.arg("-Cdebuginfo=0"); // disable debuginfo to generate less data in the target dir
82
83
- // internal lints only exist if we build with the internal feature
84
if cfg!(feature = "internal") {
+ // internal lints only exist if we build with the internal feature
85
command.args(&["-D", "clippy::internal"]);
86
+ } else {
87
+ // running a clippy built without internal lints on the clippy source
88
+ // that contains e.g. `allow(clippy::invalid_paths)`
89
+ command.args(&["-A", "unknown_lints"]);
90
}
91
92
let output = command.output().unwrap();
0 commit comments