We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5236fe9 commit ee56d30Copy full SHA for ee56d30
collector/src/compile/execute/mod.rs
@@ -329,9 +329,16 @@ impl<'a> CargoProcess<'a> {
329
let mut cmd = self.base_command(self.cwd, cargo_subcommand);
330
cmd.arg("-p").arg(self.get_pkgid(self.cwd)?);
331
match self.profile {
332
- Profile::Check | Profile::Clippy => {
+ Profile::Check => {
333
cmd.arg("--profile").arg("check");
334
}
335
+ Profile::Clippy => {
336
+ cmd.arg("--profile").arg("check");
337
+ // Make sure that we run all lints, or else would
338
+ // be pointless for allow-by-default lint benchmarks
339
+ // and would cause errors with deny-by-default lints.
340
+ cmd.env("RUSTFLAGS", "-Wclippy::all");
341
+ }
342
Profile::Debug => {}
343
Profile::Doc => {}
344
Profile::DocJson => {
0 commit comments