In some cases, clippy's manual_map
lint suggests changes that don't compile
#7413
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
I tried this code:
Playground.
I expected to see this happen: Clippy would have no complaints.
Instead, this happened: Clippy complained about the manual map:
But the suggested change doesn't compile.
Meta
cargo clippy -V
: clippy 0.1.53 (53cb7b09 2021-06-17)rustc -Vv
:The text was updated successfully, but these errors were encountered: