We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a385a43 commit a0f03bcCopy full SHA for a0f03bc
compiler/rustc_middle/src/lint.rs
@@ -471,7 +471,10 @@ pub fn in_external_macro(sess: &Session, span: Span) -> bool {
471
match expn_data.kind {
472
ExpnKind::Root
473
| ExpnKind::Desugaring(
474
- DesugaringKind::ForLoop | DesugaringKind::WhileLoop | DesugaringKind::OpaqueTy,
+ DesugaringKind::ForLoop
475
+ | DesugaringKind::WhileLoop
476
+ | DesugaringKind::OpaqueTy
477
+ | DesugaringKind::Async,
478
) => false,
479
ExpnKind::AstPass(_) | ExpnKind::Desugaring(_) => true, // well, it's "external"
480
ExpnKind::Macro(MacroKind::Bang, _) => {
0 commit comments