We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--emit=metadata
-Zno-trans
1 parent 06ec3d3 commit 22dd3eeCopy full SHA for 22dd3ee
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()]);
@@ -302,7 +302,7 @@ fn process<I>(old_args: I) -> Result<(), i32>
302
if !found_dashes {
303
args.push("--".to_owned());
304
}
305
- args.push("-Zno-trans".to_owned());
+ args.push("--emit=metadata".to_owned());
306
args.push("--cfg".to_owned());
307
args.push(r#"feature="cargo-clippy""#.to_owned());
308
0 commit comments