rust/tests/ui/impl-trait
Matthias Krüger 020e84652d
Rollup merge of #120696 - estebank:issue-115405, r=oli-obk
Properly handle `async` block and `async fn` 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-13 06:27:37 +01:00
..
2024-01-22 14:35:47 +00:00
2023-12-14 15:22:37 +01:00
2023-09-21 08:17:58 +02:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2023-04-20 15:06:17 -03:00
2023-09-23 13:47:30 +00:00
2023-07-03 21:40:04 +00:00
2023-12-14 15:22:37 +01:00
2023-10-20 21:14:01 +00:00
2023-06-27 21:36:15 +00:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2023-06-26 19:14:49 +00:00
2023-04-25 19:53:09 +00:00
2024-01-13 12:46:58 -05:00