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
..
2023-10-13 21:01:36 +00:00
2024-02-10 23:49:21 +00:00
2024-02-10 23:49:21 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-11-04 22:15:22 +08:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2024-01-24 02:53:15 +00:00
2024-01-24 02:53:15 +00:00
2023-10-13 21:01:36 +00:00
2023-10-24 15:27:06 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2024-02-12 20:26:34 +00:00
2023-10-24 15:27:06 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-24 15:27:06 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-04-30 21:52:35 +00:00
2023-11-24 19:15:52 +01:00
2023-09-07 01:31:32 +00:00
2023-10-16 15:42:26 +00:00
2023-10-16 15:42:26 +00:00
2023-10-24 15:27:06 +00:00
2023-11-24 19:15:52 +01:00
2024-01-24 02:53:15 +00:00
2024-01-24 02:53:15 +00:00
2023-10-13 21:01:36 +00:00
2023-10-24 15:27:06 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-11-02 20:47:10 +00:00
2023-10-13 21:01:36 +00:00
2023-12-14 15:22:37 +01:00
2023-10-24 15:27:06 +00:00
2023-10-29 23:55:46 +00:00
2023-10-24 15:27:06 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-12-14 15:22:37 +01:00
2023-10-13 21:01:36 +00:00
2023-11-25 17:40:52 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2024-01-17 10:02:19 +00:00
2024-01-17 10:02:19 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-12-07 23:00:46 -05:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2024-02-07 10:42:01 +08:00
2023-10-24 15:27:06 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-08-28 01:05:34 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2024-02-01 03:31:03 +00:00
2023-10-13 21:01:36 +00:00