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
|
@ -788,7 +788,7 @@ impl<'tcx> SaveContext<'tcx> {
|
|||
let callee = span.source_callee()?;
|
||||
|
||||
let mac_name = match callee.kind {
|
||||
ExpnKind::Macro { kind, name, proc_macro: _ } => match kind {
|
||||
ExpnKind::Macro(kind, name) => match kind {
|
||||
MacroKind::Bang => name,
|
||||
|
||||
// Ignore attribute macros, their spans are usually mangled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue