1
Fork 0

Add #[track_caller] to mirbug

This commit is contained in:
inquisitivecrystal 2022-01-06 13:31:28 -08:00
parent cfa4ac66c1
commit f6f8149577

View file

@ -312,6 +312,7 @@ fn translate_outlives_facts(typeck: &mut TypeChecker<'_, '_>) {
}
}
#[track_caller]
fn mirbug(tcx: TyCtxt<'_>, span: Span, msg: &str) {
// We sometimes see MIR failures (notably predicate failures) due to
// the fact that we check rvalue sized predicates here. So use `delay_span_bug`