rustc_span: Revert addition of proc_macro field to ExpnKind::Macro
The flag has a vague meaning and is used for a single diagnostic change that is low benefit and appears only under `-Z macro_backtrace`.
This commit is contained in:
@@ -1775,11 +1775,9 @@ impl<'a> Resolver<'a> {
|
||||
let expn_data = expn_id.expn_data();
|
||||
match expn_data.kind {
|
||||
ExpnKind::Root
|
||||
| ExpnKind::Macro {
|
||||
kind: MacroKind::Bang | MacroKind::Derive,
|
||||
name: _,
|
||||
proc_macro: _,
|
||||
} => Scope::DeriveHelpersCompat,
|
||||
| ExpnKind::Macro(MacroKind::Bang | MacroKind::Derive, _) => {
|
||||
Scope::DeriveHelpersCompat
|
||||
}
|
||||
_ => Scope::DeriveHelpers(expn_data.parent),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user