Pass --cfg clippy
to clippy-driver
This commit is contained in:
parent
f35eec867a
commit
e0f82af3dd
@ -271,7 +271,9 @@ pub fn main() {
|
|||||||
},
|
},
|
||||||
_ => Some(s.to_string()),
|
_ => Some(s.to_string()),
|
||||||
})
|
})
|
||||||
|
// FIXME: remove this line in 1.79 to only keep `--cfg clippy`.
|
||||||
.chain(vec!["--cfg".into(), r#"feature="cargo-clippy""#.into()])
|
.chain(vec!["--cfg".into(), r#"feature="cargo-clippy""#.into()])
|
||||||
|
.chain(vec!["--cfg".into(), "clippy".into()])
|
||||||
.collect::<Vec<String>>();
|
.collect::<Vec<String>>();
|
||||||
|
|
||||||
// We enable Clippy if one of the following conditions is met
|
// We enable Clippy if one of the following conditions is met
|
||||||
|
Loading…
Reference in New Issue
Block a user