Clippy doesn't take into account configuration overrides given through cargo --config
CLI
#14786
Labels
C-bug
Category: Clippy is not doing the correct thing
Summary
Clippy will not take into account
cargo --config
CLI arguments. This leads to cases wherecargo clippy
is unable to resolve dependencies whencargo build
andcargo check
both can.Reproducer
I built a new empty cargo project and added a single dependency (in my case
itertools
but it doesn't matter) and asked for a feature that doesn't exist in the version on crates.io. This leads to the followingCargo.toml
:Naturally this doesn't compile.
Now to simulate having made a fork of
itertools
that includes the aforementioned feature (SomeNewFeature
), I simply created another empty project in the directorymy-itertools
, named ititertools
and added this single feature. Here's theCargo.toml
:The crate
clippy-bug-test
can now be build by using the following command:I expected to see this happen:
to work normally, like
cargo build
andcargo check
did.Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: