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-20 15:22:21 +02:00
2024-10-10 01:13:29 +02:00
2024-10-20 17:14:53 +08:00
2024-09-13 14:10:56 +03:00
2024-10-14 05:30:45 +09:00
2024-09-25 13:26:48 +02:00
2024-08-24 18:25:41 -04:00
2024-09-25 13:26:48 +02:00
2024-10-11 17:36:04 +02:00
2024-10-16 13:44:56 -04:00
2024-10-22 15:28:41 +02:00
2024-10-20 08:34:15 -06:00
2024-10-15 13:11:00 +02:00
2024-10-11 20:38:43 +02:00
2024-10-16 12:22:14 +02:00
2024-09-13 14:10:56 +03:00
2024-09-22 13:55:06 -04:00
2024-09-24 22:20:46 +02:00
2024-09-23 14:04:22 +02:00
2024-10-04 14:06:48 +02:00
2024-10-16 09:41:49 +02:00
2024-10-10 10:24:57 +00:00
2024-10-14 20:24:30 +02:00
2024-10-14 22:32:32 +02:00
2024-10-21 15:22:17 +01:00
2024-08-10 12:07:17 +02:00
2024-09-26 22:26:29 -04:00
2024-10-17 12:07:19 +02:00
2024-10-17 06:33:35 -07:00
2024-08-11 09:58:11 +01:00
2024-08-23 14:40:08 +10:00
2024-10-21 20:32:01 -07:00
2024-10-15 12:33:35 -04:00
2024-10-20 21:04:13 +02:00
2024-10-09 20:58:27 +11:00
2024-09-20 10:02:14 -07:00
2024-10-04 23:38:41 +00:00
2024-10-06 23:56:27 +02:00
2024-10-16 13:44:56 -04:00
2024-09-27 21:35:08 +02:00
2024-09-30 22:21:45 +08:00
2024-10-17 12:07:19 +02:00
2024-08-08 17:35:40 +00:00
2024-09-18 19:36:44 +02:00
2024-10-11 17:36:04 +02:00
2024-10-11 17:36:04 +02:00
2024-09-24 22:17:55 +02:00
2024-10-11 17:36:04 +02:00
2024-08-28 22:55:57 +09:00
2024-08-10 12:07:17 +02:00
2024-10-17 12:07:19 +02:00
2024-10-17 12:07:19 +02:00
2024-10-11 11:30:08 -04:00
2024-10-21 18:11:19 +02:00
2024-10-05 10:13:18 +02:00
2024-10-21 20:32:01 -07:00
2024-10-15 20:42:17 -04:00
2024-09-13 14:10:56 +03:00
2024-08-16 14:10:06 -04:00
2024-09-13 14:10:56 +03:00
2024-10-15 20:42:17 -04:00
2024-09-29 23:40:43 -05:00
2024-08-31 15:35:42 +03:00
2024-10-06 01:44:59 +00:00
2024-10-15 20:42:17 -04:00
2024-09-20 01:20:10 +03:00
2024-10-19 22:00:57 +02:00
2024-09-05 06:37:38 -04:00
2024-08-20 20:34:13 +08:00
2024-09-27 00:45:02 +00:00
2024-10-02 17:36:31 +08:00
2024-09-15 09:51:32 +02:00
2024-10-08 11:15:24 +08:00
2024-08-22 08:25:54 +02:00
2024-10-15 14:25:55 +02:00
2024-10-18 00:29:31 +07:00
2024-10-19 22:00:57 +02:00
2024-09-22 13:55:06 -04:00
2024-10-10 00:57:59 +02:00
2024-10-20 02:12:58 -07:00
2024-09-22 13:55:06 -04:00
2024-09-06 10:32:48 -04:00
2024-09-29 23:40:43 -05:00
2024-09-20 10:02:14 -07:00
2024-09-13 14:10:56 +03:00
2024-10-21 18:11:22 +02:00
2024-09-13 14:10:56 +03:00
2024-10-14 23:22:51 +02:00
2024-10-12 09:41:42 +08:00
2024-09-29 11:57:18 -04:00
2024-10-21 15:22:17 +01:00
2024-10-04 14:06:48 +02:00
2024-10-05 19:10:47 -04:00
2024-09-24 22:20:46 +02:00
2024-09-22 13:55:06 -04:00
2024-09-06 17:06:35 +03:00
2024-09-14 12:41:25 +02:00
2024-09-22 13:55:06 -04:00
2024-08-19 21:39:57 +02:00
2024-08-18 19:46:53 +02:00
2024-10-05 17:12:46 +02:00
2024-09-27 14:40:38 +01:00
2024-10-14 17:06:38 +02:00
2024-10-16 19:18:30 +02:00
2024-08-08 20:53:25 -04:00
2024-10-19 12:40:12 +00:00
2024-10-04 23:38:41 +00:00
2024-10-11 21:21:32 +02:00
2024-10-15 14:25:55 +02:00
2024-10-18 17:27:28 +02:00
2024-10-05 19:10:47 -04:00
2024-10-05 19:10:47 -04:00
2024-09-24 23:12:02 +02:00
2024-09-09 19:39:43 -07:00
2024-10-11 17:36:04 +02:00
2024-08-25 20:30:06 +08:00
2024-10-22 00:03:09 +00:00
2024-10-12 13:01:36 +02:00
2024-08-09 16:16:16 -07:00
2024-10-11 17:36:04 +02:00
2024-10-11 11:30:08 -04:00
2024-10-19 12:40:12 +00:00
2024-10-10 22:00:50 +02:00
2024-09-18 13:53:31 -07:00
2024-10-06 01:44:59 +00:00
2024-09-22 13:55:06 -04:00
2024-10-15 13:11:00 +02:00
2024-09-26 13:21:15 +02:00
2024-09-27 21:35:08 +02:00
2024-10-20 00:12:52 -07:00
2024-10-15 14:25:55 +02:00
2024-10-21 15:22:17 +01:00
2024-10-19 22:00:59 +02:00
2024-09-24 15:48:49 +01:00
2024-09-20 17:25:34 +00:00
2024-08-24 05:32:52 +02:00
2024-09-27 00:45:02 +00:00
2024-10-21 20:32:02 -07:00
2024-10-19 18:07:35 +00:00
2024-10-16 13:44:56 -04:00
2024-09-25 19:00:19 -07:00
2024-10-17 12:07:19 +02:00
2024-08-28 22:55:57 +09:00
2024-10-19 22:00:57 +02:00
2024-10-17 12:07:19 +02:00
2024-09-22 13:55:06 -04:00
2024-09-13 21:01:29 +02:00
2024-10-01 13:55:46 -04:00
2024-10-01 13:55:46 -04:00
2024-09-18 16:45:48 -04:00
2024-09-27 00:45:02 +00:00
2024-10-10 01:13:29 +02:00
2024-10-14 14:40:11 -04:00
2024-10-15 14:58:54 -04:00
2024-10-10 01:13:29 +02:00
2024-08-22 09:36:14 -07:00
2024-08-22 09:36:14 -07:00
2024-10-04 14:06:48 +02:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:11:00 +02:00
2024-09-13 14:10:56 +03:00
2024-09-21 13:04:14 +02:00
2024-10-07 14:45:49 -07:00