We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e56331f + 22dd3ee commit b8ecdc1Copy full SHA for b8ecdc1
src/main.rs
@@ -270,7 +270,7 @@ pub fn main() {
270
// this check ensures that dependencies are built but not linted and the final
271
// crate is
272
// linted but not built
273
- let clippy_enabled = env::args().any(|s| s == "-Zno-trans");
+ let clippy_enabled = env::args().any(|s| s == "--emit=metadata");
274
275
if clippy_enabled {
276
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>
300
if !found_dashes {
301
args.push("--".to_owned());
302
}
303
- args.push("-Zno-trans".to_owned());
+ args.push("--emit=metadata".to_owned());
304
args.push("--cfg".to_owned());
305
args.push(r#"feature="cargo-clippy""#.to_owned());
306
0 commit comments