Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit cf6358a

Browse files
committed
Fix Clippy opt-in with tool lints
It seems that rustc doesn't handle `-Aclippy::all` and needs for the tool lint to be separated (`-A clippy::all`)
1 parent 397561f commit cf6358a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/build/rustc.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ crate fn rustc(
7070
let mut clippy_args = vec!["--cfg".to_owned(), r#"feature="cargo-clippy""#.to_owned()];
7171

7272
if clippy_pref == ClippyPreference::OptIn {
73-
// `OptIn`: allow clippy require `#![warn(clippy)]` override in each workspace crate
74-
clippy_args.push("-Aclippy".to_owned());
73+
// `OptIn`: Require explicit `#![warn(clippy::all)]` annotation in each workspace crate
74+
clippy_args.push("-A".to_owned());
75+
clippy_args.push("clippy::all".to_owned());
7576
}
7677

7778
args.iter()

0 commit comments

Comments
 (0)