Remove ExpnKind::Inlined.
This commit is contained in:
parent
d300bffa4f
commit
0919ec3ecc
9 changed files with 7 additions and 51 deletions
|
@ -468,8 +468,7 @@ pub fn struct_lint_level(
|
|||
pub fn in_external_macro(sess: &Session, span: Span) -> bool {
|
||||
let expn_data = span.ctxt().outer_expn_data();
|
||||
match expn_data.kind {
|
||||
ExpnKind::Inlined
|
||||
| ExpnKind::Root
|
||||
ExpnKind::Root
|
||||
| ExpnKind::Desugaring(
|
||||
DesugaringKind::ForLoop | DesugaringKind::WhileLoop | DesugaringKind::OpaqueTy,
|
||||
) => false,
|
||||
|
|
|
@ -2488,9 +2488,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
&& if self.features().collapse_debuginfo {
|
||||
span.in_macro_expansion_with_collapse_debuginfo()
|
||||
} else {
|
||||
// Inlined spans should not be collapsed as that leads to all of the
|
||||
// inlined code being attributed to the inline callsite.
|
||||
span.from_expansion() && !span.is_inlined()
|
||||
span.from_expansion()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue