diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-01-29 19:03:20 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-02-02 13:57:46 -0500 |
| commit | a74b2fb946f649d5020a5e1803bb6abb039a1a22 (patch) | |
| tree | 5cfa31edd13cb1ff802c6647a4a680acb9c20ded /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | b81f5811f96fe750ab28c15219d1b0dba6b1dc90 (diff) | |
| download | rust-a74b2fb946f649d5020a5e1803bb6abb039a1a22.tar.gz rust-a74b2fb946f649d5020a5e1803bb6abb039a1a22.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
