Files
rust/compiler
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-19 18:07:35 +00:00
2024-10-09 10:28:16 -07:00
2024-10-20 08:34:25 +00:00
2024-10-19 18:07:35 +00:00