Skip to content

Commit b8ecdc1

Browse files
authored
Merge pull request #1852 from Manishearth/notrans
Use `--emit=metadata` instead of `-Zno-trans`
2 parents e56331f + 22dd3ee commit b8ecdc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
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()]);
@@ -300,7 +300,7 @@ fn process<I>(old_args: I) -> Result<(), i32>
300300
if !found_dashes {
301301
args.push("--".to_owned());
302302
}
303-
args.push("-Zno-trans".to_owned());
303+
args.push("--emit=metadata".to_owned());
304304
args.push("--cfg".to_owned());
305305
args.push(r#"feature="cargo-clippy""#.to_owned());
306306

0 commit comments

Comments
 (0)