Skip to content

Commit

Permalink
Add #[track_caller] to mirbug
Browse files Browse the repository at this point in the history
  • Loading branch information
inquisitivecrystal committed Jan 6, 2022
1 parent cfa4ac6 commit f6f8149
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_borrowck/src/type_check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit f6f8149

Please sign in to comment.