mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-09 11:48:48 +00:00
1da9156b0d
Implement IntoFuture type inference One of my projects is using [IntoFuture](https://doc.rust-lang.org/std/future/trait.IntoFuture.html) to make our async code a little less verbose. However, rust-analyzer can't infer the output type of an await expression if the value uses `IntoFuture` to convert into another type. So we're getting `{unknown}` types everywhere since switching. `foo.await` itself [desugars]( |
||
---|---|---|
.. | ||
coercion.rs | ||
diagnostics.rs | ||
display_source_code.rs | ||
incremental.rs | ||
macros.rs | ||
method_resolution.rs | ||
never_type.rs | ||
patterns.rs | ||
regression.rs | ||
simple.rs | ||
traits.rs |