Skip to content

Commit

Permalink
chore(dev): Avoid unnecessary cargo check/clippy rebuilds (#10450)
Browse files Browse the repository at this point in the history
The changes introduced in 7f8e41c (chore(dev): Have clippy catch debug
statements (#10125)) caused cargo to use different `rustflags` between
runs of `cargo clippy` and all other builds. This ended up causing
running `cargo clippy` to clear cached data for the other builds and
vice versa, resulting in some check cycles taking longer than necessary.
Since these flags are just defines, they can be turned on for all
targets, eliminating the problem.
  • Loading branch information
bruceg authored Dec 14, 2021
1 parent bdce89e commit 4897bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[target.'cfg(feature = "cargo-clippy")']
[target.'cfg(all)']
rustflags = [
"-Dclippy::print_stdout",
"-Dclippy::print_stderr",
Expand Down

0 comments on commit 4897bf3

Please sign in to comment.