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
|
@ -387,7 +387,7 @@ pub fn in_external_macro(sess: &Session, span: Span) -> bool {
|
|||
false
|
||||
}
|
||||
ExpnKind::AstPass(_) | ExpnKind::Desugaring(_) => true, // well, it's "external"
|
||||
ExpnKind::Macro { kind: MacroKind::Bang, name: _, proc_macro: _ } => {
|
||||
ExpnKind::Macro(MacroKind::Bang, _) => {
|
||||
// Dummy span for the `def_site` means it's an external macro.
|
||||
expn_data.def_site.is_dummy() || sess.source_map().is_imported(expn_data.def_site)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue