Files
rust/tests/ui
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
..
2024-03-01 16:37:23 +01:00
2024-03-01 16:37:23 +01:00
2024-03-01 16:37:23 +01:00
2024-03-01 16:37:23 +01:00
2024-03-01 16:36:04 +01:00
2024-03-01 16:37:23 +01:00
2023-09-23 13:47:30 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +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
2024-03-09 12:43:19 +01:00
2024-03-09 12:43:19 +01:00
2024-03-08 22:39:36 -05:00
2024-03-01 16:36:04 +01:00
2024-03-01 16:36:04 +01:00
2024-03-01 16:37:23 +01:00
2024-03-03 08:32:30 +01:00
2024-03-03 08:32:30 +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
2023-10-04 21:09:54 +00:00
2023-10-13 21:01:36 +00:00