Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion collector/src/compile/execute/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,21 @@ impl<'a> CargoProcess<'a> {
let mut cmd = self.base_command(self.cwd, cargo_subcommand);
cmd.arg("-p").arg(self.get_pkgid(self.cwd)?);
match self.profile {
Profile::Check | Profile::Clippy => {
Profile::Check => {
cmd.arg("--profile").arg("check");
}
Profile::Clippy => {
cmd.arg("--profile").arg("check");
// Make sure that we run all lints, or else would
// be pointless for allow-by-default lint benchmarks
// and would cause errors with deny-by-default lints.
//
// Note that this takes priority over inherited `-Aclippy::*`s
// and similar.
let mut rustflags = env::var("RUSTFLAGS").unwrap_or_default();
rustflags.push_str(" -Wclippy::all");
cmd.env("RUSTFLAGS", rustflags);
}
Profile::Debug => {}
Profile::Doc => {}
Profile::DocJson => {
Expand Down
Loading