Remove ExpnKind::Inlined.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user