Remove ExpnKind::Inlined.
This commit is contained in:
parent
d300bffa4f
commit
0919ec3ecc
9 changed files with 7 additions and 51 deletions
|
@ -332,7 +332,7 @@ pub trait Emitter: Translate {
|
|||
|
||||
// Skip past non-macro entries, just in case there
|
||||
// are some which do actually involve macros.
|
||||
ExpnKind::Inlined | ExpnKind::Desugaring(..) | ExpnKind::AstPass(..) => None,
|
||||
ExpnKind::Desugaring(..) | ExpnKind::AstPass(..) => None,
|
||||
|
||||
ExpnKind::Macro(macro_kind, name) => Some((macro_kind, name)),
|
||||
}
|
||||
|
@ -403,7 +403,7 @@ pub trait Emitter: Translate {
|
|||
continue;
|
||||
}
|
||||
|
||||
if always_backtrace && !matches!(trace.kind, ExpnKind::Inlined) {
|
||||
if always_backtrace {
|
||||
new_labels.push((
|
||||
trace.def_site,
|
||||
format!(
|
||||
|
@ -442,7 +442,6 @@ pub trait Emitter: Translate {
|
|||
"this derive macro expansion".into()
|
||||
}
|
||||
ExpnKind::Macro(MacroKind::Bang, _) => "this macro invocation".into(),
|
||||
ExpnKind::Inlined => "this inlined function call".into(),
|
||||
ExpnKind::Root => "the crate root".into(),
|
||||
ExpnKind::AstPass(kind) => kind.descr().into(),
|
||||
ExpnKind::Desugaring(kind) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue