Jacob Pratt 542dcbf6a2
Rollup merge of #141812 - JonathanBrouwer:fix-else-if-help, r=jdonszelmann
Fix "consider borrowing" for else-if

Fixes rust-lang/rust#141810

When trying to suggest a borrow on a `if` or `block` expression, instead we now recurse into the `if` or `block`.
The comments in the code should explain the goal of the new code.

r? ``@jdonszelmann``
2025-06-01 00:35:53 +02:00
..
2025-05-31 19:49:19 +05:00
2025-05-28 15:14:34 +01:00
2025-05-28 15:14:34 +01:00
2025-05-31 19:49:19 +05:00
2025-05-21 20:38:49 +01:00
2025-05-31 19:49:19 +05:00
2025-05-26 16:35:36 +01:00
2025-05-31 19:49:19 +05:00
2025-05-30 12:14:27 +02:00
2025-05-28 15:14:34 +01:00
2025-05-21 20:20:19 +01:00
2025-05-31 18:34:35 +02:00