mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
1e0a3ff55c
Improve `map_entry` suggestion fixes: #5176 fixes: #4674 fixes: #4664 fixes: #1450 Still need to handle the value returned by `insert` correctly. changelog: Improve `map_entry` suggestion. Will now suggest `or_insert`, `insert_with` or `match _.entry(_)` as appopriate. changelog: Fix `map_entry` false positives where the entry api can't be used. e.g. when the map is used for multiple things.