Duplicate rustflags should be de-duplicated #13774
Labels
A-rustflags
Area: rustflags
C-bug
Category: bug
E-hard
Experience: Hard
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
I have a crate with a
.cargo/config.toml
to enable tracing unstable features:However I use this crate as part of a workspace. So I also put the previous config.toml in my workspace
.cargo/config.toml
.Now everytime I save, rust-analyzer build every crate if I did a cargo check in the crate directory.
I found that it's because the rustflags are not merged properly:
Steps
.cargo/config.toml
:foo
and put the following content infoo/.cargo/config.toml
:cargo check
in the workspace and in thefoo
crate are rebuilding every crate instead of using previously built ones.Possible Solution(s)
When appending rustflags, check for possible duplicates to avoid multiple same values counting as different ones.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: