Stream: t-compiler/wg-rls-2.0

Topic: async/await


pksunkara (Mar 28 2020 at 08:09, on Zulip):

One of the issues I am seeing is no type hints when .await is used. I wanted to confirm that it is not implemented yet. Or am I mistaken and it's a local issue or maybe it's because of other issues?

Edwin Cheng (Mar 28 2020 at 08:38, on Zulip):

the basic of await infer was implemented in https://github.com/rust-analyzer/rust-analyzer/pull/2661.

pksunkara (May 20 2020 at 15:57, on Zulip):
let b = call_this_async_fn().await;
pksunkara (May 20 2020 at 15:57, on Zulip):

The type for call_this_async_fn() is good, but then b becomes unknown because of await

pksunkara (May 20 2020 at 15:58, on Zulip):

I am not sure if await keyword support is implemented or not

Florian Diebold (May 20 2020 at 16:01, on Zulip):

rust-analyzer#1791

Florian Diebold (May 20 2020 at 16:01, on Zulip):

it's implemented, but many cases require return position impl trait, which is not

pksunkara (May 20 2020 at 16:09, on Zulip):

Thanks. I understand now. I guess, it needs to be fixed in chalk

Florian Diebold (May 20 2020 at 16:18, on Zulip):

we're waiting for the impl trait support in Chalk to be finished, and then we need to implement it in rust-analyzer

Last update: Oct 28 2020 at 18:00UTC