rust/compiler/rustc_lint
bors 368275062f Auto merge of #81541 - Aaron1011:early-lint-async-fn, r=petrochenkov
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 uses the parent of a desugared closure when computing
`lint_node_id`, which is something that actually exists in the AST (an
`async fn` or async closure).
2021-02-02 20:27:09 +00:00
..
src Auto merge of #81541 - Aaron1011:early-lint-async-fn, r=petrochenkov 2021-02-02 20:27:09 +00:00
Cargo.toml Parse the format string for the panic_fmt lint for better warnings. 2020-10-20 22:25:42 +02:00