Support async
blocks and await
expressions
#174
Labels
A-api
Area: Stable API
C-enhancement
Category: New feature or request
D-rustc-driver
Driver: Rustc Driver
E-help-wanted
Participation: Issues with some complexity and where help would be highly appreciated
Milestone
Marker is currently still missing a stable representation for
async
blocks andawait
expressions. For now, these will be transformed into anUnstableExpr
and a note will be printed notifying the used.Async blocks and await expressions are quite complicated, which is the main reason why they are missing. Rust desugars them into several sub expressions with different
LangItems
. Other expressions, likefor
loops are resugared by marker to make linting more pleasant and hide the specific implementation the driver choose. For async blocks and await expressions, it would be good to do the same. However, that's a beast I just haven't dared to touch.Until that time, please use this issue to share
await
andasync
code snippets which can be used for testing when that beast is finally tackled.The
MARKER_DISABLE_ASYNC_WARNING
environment value can be used to disable the warnings. You might have to clean the project first for the value to take effect.The text was updated successfully, but these errors were encountered: