Pass --cfg clippy to clippy-driver

This commit is contained in:
Guillaume Gomez 2024-02-14 23:16:48 +01:00
parent f35eec867a
commit e0f82af3dd

View File

@ -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