Skip to content

Commit e0f82af

Browse files
Pass --cfg clippy to clippy-driver
1 parent f35eec8 commit e0f82af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/driver.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ pub fn main() {
271271
},
272272
_ => Some(s.to_string()),
273273
})
274+
// FIXME: remove this line in 1.79 to only keep `--cfg clippy`.
274275
.chain(vec!["--cfg".into(), r#"feature="cargo-clippy""#.into()])
276+
.chain(vec!["--cfg".into(), "clippy".into()])
275277
.collect::<Vec<String>>();
276278

277279
// We enable Clippy if one of the following conditions is met

0 commit comments

Comments
 (0)