Add undefined feature diagnostic #11435
Labels
A-diagnostics
diagnostics / error reporting
A-ide
general IDE features
C-feature
Category: feature request
S-actionable
Someone could pick this issue up and work on it right now
Since this isn't really possible to solve in Clippy, I was wondering whether rust-analyzer could check for existance of a feature or optional dependency named
foo
inCargo.toml
when encounteringcfg(feature = "foo")
, and raise a warning if there isn't one.The text was updated successfully, but these errors were encountered: