bors b5dcaae844 Auto merge of #12498 - y21:issue12489, r=blyxyas
[`map_entry`]: call the visitor on the local's `else` block

Fixes #12489

The lint already has all the logic it needs for figuring out if it can or can't suggest a closure if it sees control flow expressions like `break` or `continue`, but it was ignoring the local's else block, which meant that it didn't see the `return None;` in a `let..else`.

changelog: [`map_entry`]: suggest `if let` instead of a closure when `return` expressions exist in the else block of a `let..else`
2024-03-18 06:28:47 +00:00
..
2023-08-11 14:02:28 +00:00
2023-12-10 15:36:31 -05:00
2023-08-11 14:02:28 +00:00
2023-05-31 17:30:23 -05:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2024-03-10 01:23:28 +01:00
2024-03-10 01:23:28 +01:00
2024-03-10 01:23:28 +01:00
2024-03-10 01:23:28 +01:00
2024-03-10 01:23:28 +01:00
2024-03-14 12:40:33 +09:00
2024-03-10 01:23:28 +01:00
2024-03-10 01:23:28 +01:00
2023-08-11 14:02:28 +00:00
2024-02-15 06:22:15 +09:00
2023-08-11 14:02:28 +00:00
2024-03-09 12:43:19 +01:00
2024-03-09 12:43:19 +01:00
2024-03-08 22:39:36 -05:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2024-03-10 01:23:28 +01:00
2024-03-10 01:23:28 +01:00
2024-03-10 01:23:28 +01:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2024-02-05 15:41:59 +01:00
2023-08-11 14:02:28 +00:00
2023-08-11 14:02:28 +00:00
2023-10-13 21:01:36 +00:00