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:
parent
a31431fce7
commit
28f4dba438
19 changed files with 37 additions and 118 deletions
|
@ -319,11 +319,7 @@ impl<'a> ResolverExpand for Resolver<'a> {
|
|||
let expn_data = expn_id.expn_data();
|
||||
match expn_data.kind {
|
||||
ExpnKind::Root
|
||||
| ExpnKind::Macro {
|
||||
name: _,
|
||||
kind: MacroKind::Bang | MacroKind::Derive,
|
||||
proc_macro: _,
|
||||
} => {
|
||||
| ExpnKind::Macro(MacroKind::Bang | MacroKind::Derive, _) => {
|
||||
break;
|
||||
}
|
||||
_ => expn_id = expn_data.parent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue