Skip to content

Commit f6f8149

Browse files
Add #[track_caller] to mirbug
1 parent cfa4ac6 commit f6f8149

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_borrowck/src/type_check

1 file changed

+1
-0
lines changed

compiler/rustc_borrowck/src/type_check/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ fn translate_outlives_facts(typeck: &mut TypeChecker<'_, '_>) {
312312
}
313313
}
314314

315+
#[track_caller]
315316
fn mirbug(tcx: TyCtxt<'_>, span: Span, msg: &str) {
316317
// We sometimes see MIR failures (notably predicate failures) due to
317318
// the fact that we check rvalue sized predicates here. So use `delay_span_bug`

0 commit comments

Comments
 (0)