mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-25 19:35:06 +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]( |
||
---|---|---|
.. | ||
completions | ||
context | ||
render | ||
tests | ||
completions.rs | ||
config.rs | ||
context.rs | ||
item.rs | ||
lib.rs | ||
render.rs | ||
snippet.rs | ||
tests.rs |