rust/tests/ui/async-await
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
..
2024-01-13 12:46:58 -05:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-10-13 21:01:36 +00:00
2023-09-23 13:47:30 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-09-26 20:15:28 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2023-09-23 13:34:07 +00:00
2023-10-28 23:11:03 -07:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:34:07 +00:00
2023-10-20 21:14:01 +00:00
2023-05-24 19:35:59 -03:00
2023-09-23 13:34:07 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-04-27 17:18:11 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-09-23 13:47:30 +00:00