rust/compiler/rustc_lint
Aaron Hill a74b2fb946
Fix early lints inside an async desugaring
Fixes #81531

When we buffer an early lint for a macro invocation,
we need to determine which NodeId to take the lint level from.
Currently, we use the `NodeId` of the closest def parent. However, if
the macro invocation is inside the desugared closure from an `async fn`
or async closure, that `NodeId` does not actually exist in the AST.

This commit explicitly calls `check_lint` for the `NodeId`s of closures
desugared from async expressions, ensuring that we do not miss any
buffered lints.
2021-02-02 13:57:46 -05:00
..
src Fix early lints inside an async desugaring 2021-02-02 13:57:46 -05:00
Cargo.toml Parse the format string for the panic_fmt lint for better warnings. 2020-10-20 22:25:42 +02:00