Incorrect suggestion when contains_key+insert is used in a while loop #10331
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
Uh oh!
There was an error while loading. Please reload this page.
Summary
When contains_key+insert is used in a while loop, Clippy suggestion is an unnecessary unrolling of the code.
Lint Name
map_entry
Reproducer
Original Code (Expected):
Clippy Suggestion:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: