about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-02 20:27:09 +0000
committerbors <bors@rust-lang.org>2021-02-02 20:27:09 +0000
commit368275062fb655c1f36e0398f88b15379a1f3c93 (patch)
treeaabedb920e5ac89256e0ed99865c1dc5f8f0968d /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent3182375e064b8fa90437aee1465bccafd8187d89 (diff)
parenta74b2fb946f649d5020a5e1803bb6abb039a1a22 (diff)
downloadrust-368275062fb655c1f36e0398f88b15379a1f3c93.tar.gz
rust-368275062fb655c1f36e0398f88b15379a1f3c93.zip
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).
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions