Skip to content

Commit 22dd3ee

Browse files
committed
Use --emit=metadata instead of -Zno-trans
fixes #1500
1 parent 06ec3d3 commit 22dd3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ pub fn main() {
270270
// this check ensures that dependencies are built but not linted and the final
271271
// crate is
272272
// linted but not built
273-
let clippy_enabled = env::args().any(|s| s == "-Zno-trans");
273+
let clippy_enabled = env::args().any(|s| s == "--emit=metadata");
274274

275275
if clippy_enabled {
276276
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>
302302
if !found_dashes {
303303
args.push("--".to_owned());
304304
}
305-
args.push("-Zno-trans".to_owned());
305+
args.push("--emit=metadata".to_owned());
306306
args.push("--cfg".to_owned());
307307
args.push(r#"feature="cargo-clippy""#.to_owned());
308308

0 commit comments

Comments
 (0)