mirror of https://github.com/rust-lang/rust.git
parent
06ec3d310f
commit
22dd3eef0b
|
@ -270,7 +270,7 @@ pub fn main() {
|
||||||
// this check ensures that dependencies are built but not linted and the final
|
// this check ensures that dependencies are built but not linted and the final
|
||||||
// crate is
|
// crate is
|
||||||
// linted but not built
|
// linted but not built
|
||||||
let clippy_enabled = env::args().any(|s| s == "-Zno-trans");
|
let clippy_enabled = env::args().any(|s| s == "--emit=metadata");
|
||||||
|
|
||||||
if clippy_enabled {
|
if clippy_enabled {
|
||||||
args.extend_from_slice(&["--cfg".to_owned(), r#"feature="cargo-clippy""#.to_owned()]);
|
args.extend_from_slice(&["--cfg".to_owned(), r#"feature="cargo-clippy""#.to_owned()]);
|
||||||
|
@ -302,7 +302,7 @@ fn process<I>(old_args: I) -> Result<(), i32>
|
||||||
if !found_dashes {
|
if !found_dashes {
|
||||||
args.push("--".to_owned());
|
args.push("--".to_owned());
|
||||||
}
|
}
|
||||||
args.push("-Zno-trans".to_owned());
|
args.push("--emit=metadata".to_owned());
|
||||||
args.push("--cfg".to_owned());
|
args.push("--cfg".to_owned());
|
||||||
args.push(r#"feature="cargo-clippy""#.to_owned());
|
args.push(r#"feature="cargo-clippy""#.to_owned());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue