From 22dd3eef0b09742ae959835512982db0c10206b8 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 26 Jun 2017 14:49:30 +0200 Subject: [PATCH] Use `--emit=metadata` instead of `-Zno-trans` fixes #1500 --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1b3dd4f05e0..7e904ba8bf8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(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());