1
Fork 0

Remove ExpnKind::Inlined.

This commit is contained in:
Camille GILLOT 2023-05-24 20:26:24 +00:00
parent d300bffa4f
commit 0919ec3ecc
9 changed files with 7 additions and 51 deletions

View file

@ -468,8 +468,7 @@ pub fn struct_lint_level(
pub fn in_external_macro(sess: &Session, span: Span) -> bool {
let expn_data = span.ctxt().outer_expn_data();
match expn_data.kind {
ExpnKind::Inlined
| ExpnKind::Root
ExpnKind::Root
| ExpnKind::Desugaring(
DesugaringKind::ForLoop | DesugaringKind::WhileLoop | DesugaringKind::OpaqueTy,
) => false,