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

@ -766,6 +766,8 @@ pub enum ExpnKind {
AstPass(AstPass),
/// Desugaring done by the compiler during HIR lowering.
Desugaring(DesugaringKind),
/// MIR inlining
Inlined,
}
impl ExpnKind {
@ -779,6 +781,7 @@ impl ExpnKind {
},
ExpnKind::AstPass(kind) => kind.descr().to_string(),
ExpnKind::Desugaring(kind) => format!("desugaring of {}", kind.descr()),
ExpnKind::Inlined => "inlined source".to_string(),
}
}
}