Show the inline stack of MIR lints that only occur after inlining

This commit is contained in:
Oliver Scherer 2020-09-19 18:56:32 +02:00 committed by oli
parent 4445e46518
commit c8a866ea17
40 changed files with 378 additions and 353 deletions

View file

@ -799,7 +799,9 @@ impl<'tcx> SaveContext<'tcx> {
// These are not macros.
// FIXME(eddyb) maybe there is a way to handle them usefully?
ExpnKind::Root | ExpnKind::AstPass(_) | ExpnKind::Desugaring(_) => return None,
ExpnKind::Inlined | ExpnKind::Root | ExpnKind::AstPass(_) | ExpnKind::Desugaring(_) => {
return None;
}
};
let callee_span = self.span_from_span(callee.def_site);