false positive for map_entry when two different maps used #4219
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Clippy wrongly triggers the map_entry lint in the following case (note the map used with
contains_key
is different from the one used withinsert
):Link to the playground (click Tools -> Clippy): https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b230b4300359f8ddaa4e2610d2e0dd1c
The text was updated successfully, but these errors were encountered: