Use --emit=metadata instead of -Zno-trans

fixes #1500
This commit is contained in:
Oliver Schneider 2017-06-26 14:49:30 +02:00
parent 06ec3d310f
commit 22dd3eef0b

View File

@ -270,7 +270,7 @@ pub fn main() {
// this check ensures that dependencies are built but not linted and the final
// crate is
// 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 {
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 {
args.push("--".to_owned());
}
args.push("-Zno-trans".to_owned());
args.push("--emit=metadata".to_owned());
args.push("--cfg".to_owned());
args.push(r#"feature="cargo-clippy""#.to_owned());