Matthias Krüger
457087ed29
Rollup merge of #131549 - compiler-errors:try-in-sync, r=spastorino
...
Add a note for `?` on a `impl Future<Output = Result<..>>` in sync function
It's confusing to `?` a future of a result in a sync function. We have a suggestion to `.await` it if we're in an async function, but not a sync function. Note that this is the case for sync functions, at least.
Let's be a bit more vague about a fix, since it's somewhat context dependent. For example, you could block on it, or you could make your function asynchronous. 🤷
2024-10-22 15:28:41 +02:00
..
2024-10-21 15:11:20 +02:00
2024-10-21 15:22:17 +01:00
2024-10-15 11:50:31 +00:00
2024-10-07 11:15:04 -07:00
2024-10-19 18:02:26 +00:00
2024-10-15 14:21:34 +00:00
2024-10-15 11:50:31 +00:00
2024-10-16 09:41:49 +02:00
2024-10-21 03:46:28 +00:00
2024-10-15 11:50:31 +00:00
2024-10-19 18:07:35 +00:00
2024-10-21 20:32:00 -07:00
2024-10-21 03:46:28 +00:00
2024-10-21 18:11:19 +02:00
2024-10-21 18:11:19 +02:00
2024-10-21 18:11:19 +02:00
2024-10-07 11:10:53 -07:00
2024-10-09 10:28:16 -07:00
2024-10-07 12:23:54 +02:00
2024-10-22 15:28:35 +02:00
2024-10-21 18:11:19 +02:00
2024-10-19 22:32:38 +08:00
2024-10-15 11:50:31 +00:00
2024-10-22 15:28:38 +02:00
2024-10-14 09:20:38 -04:00
2024-10-22 15:28:41 +02:00
2024-10-06 23:28:30 +09:00
2024-10-10 12:49:18 +02:00
2024-10-14 23:22:51 +02:00
2024-10-19 00:41:56 +02:00
2024-10-18 00:29:31 +07:00
2024-10-08 18:21:16 -06:00
2024-10-22 03:24:40 +00:00
2024-10-22 03:24:40 +00:00
2024-10-20 14:06:03 +11:00
2024-10-20 08:34:25 +00:00
2024-10-22 15:28:38 +02:00
2024-10-20 13:40:22 +00:00
2024-10-19 18:07:35 +00:00
2024-10-22 10:08:46 +02:00
2024-10-14 16:37:54 +02:00
2024-10-21 17:51:43 +02:00
2024-10-15 11:50:31 +00:00
2024-10-14 23:22:51 +02:00
2024-10-22 15:28:38 +02:00
2024-10-20 00:12:49 -07:00
2024-10-22 15:28:38 +02:00
2024-10-03 12:47:08 +03:00
2024-10-01 21:23:20 -06:00
2024-10-20 00:12:52 -07:00
2024-10-22 15:28:38 +02:00
2024-10-16 15:44:16 +02:00
2024-10-20 18:18:01 +07:00
2024-10-22 15:28:38 +02:00
2024-10-21 15:22:17 +01:00
2024-10-19 18:07:35 +00:00
2024-10-22 05:49:18 +00:00
2024-10-22 15:28:41 +02:00
2024-10-17 10:22:52 +02:00
2024-10-19 18:07:35 +00:00
2024-10-21 03:46:28 +00:00
2024-10-22 15:28:38 +02:00
2024-10-16 20:15:56 +02:00