rust/compiler/rustc_parse/src
Esteban Küber 37d2ea2fa0 Properly handle async blocks and fns in if exprs without else
When encountering a tail expression in the then arm of an `if` expression
without an `else` arm, account for `async fn` and `async` blocks to
suggest `return`ing the value and pointing at the return type of the
`async fn`.

We now also account for AFIT when looking for the return type to point at.

Fix #115405.
2024-02-12 20:26:34 +00:00
..
lexer Stop using String for error codes. 2024-01-29 07:41:41 +11:00
parser Properly handle async blocks and fns in if exprs without else 2024-02-12 20:26:34 +00:00
errors.rs Add SubdiagnosticMessageOp as a trait alias. 2024-02-08 13:02:44 +11:00
lib.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
validate_attr.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00