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-02-12 12:47:32 +08:00
2024-02-12 12:47:30 +08:00
2024-02-12 12:47:29 +08:00
2024-02-12 12:47:23 +08:00
2024-02-12 23:18:54 +01:00
2024-02-12 12:47:32 +08:00
2024-02-12 23:18:54 +01:00
2024-02-12 23:18:54 +01:00
2024-02-12 23:18:54 +01:00
2024-02-12 15:46:35 +09:00
2024-02-12 18:04:07 +01:00
2024-02-12 23:18:54 +01:00
2024-02-12 23:18:54 +01:00
2024-02-13 02:48:49 +00:00
2024-02-12 12:47:23 +08:00
2024-02-13 06:27:37 +01:00
2024-02-12 09:42:41 +00:00
2024-02-12 23:18:54 +01:00
2024-02-12 18:39:20 +11:00
2024-02-12 19:40:17 +01:00
2024-02-13 02:48:49 +00:00
2024-02-13 06:27:37 +01:00
2024-02-12 23:18:54 +01:00
2024-02-12 23:18:54 +01:00
2024-02-13 02:48:49 +00:00
2024-02-12 20:26:34 +00:00
2024-02-12 23:18:54 +01:00
2024-02-13 00:31:53 +00:00
2024-02-12 15:46:35 +09:00
2024-02-12 12:47:32 +08:00
2024-02-12 15:46:35 +09:00
2024-02-12 23:18:54 +01:00
2024-02-12 23:18:54 +01:00
2024-02-12 10:31:12 -03:00
2024-02-13 02:48:49 +00:00
2024-02-12 15:46:35 +09:00
2024-02-13 02:48:49 +00:00
2024-02-12 15:46:35 +09:00
2024-02-12 15:46:35 +09:00