We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--print=crate-root-lint-levels
1 parent c394c00 commit a165008Copy full SHA for a165008
src/driver.rs
@@ -330,7 +330,8 @@ pub fn main() {
330
331
// Do not run Clippy for Cargo's info queries so that invalid CLIPPY_ARGS are not cached
332
// https://github.com/rust-lang/cargo/issues/14385
333
- let info_query = has_arg(&orig_args, "-vV") || has_arg(&orig_args, "--print");
+ let info_query = has_arg(&orig_args, "-vV")
334
+ || arg_value(&orig_args, "--print", |val| val != "crate-root-lint-levels").is_some();
335
336
let clippy_enabled = !cap_lints_allow && relevant_package && !info_query;
337
if clippy_enabled {
0 commit comments