about summary refs log tree commit diff
diff options
context:
space:
mode:
authorinquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com>2022-01-06 13:31:28 -0800
committerinquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com>2022-01-06 13:31:28 -0800
commitf6f814957796a8d2f1e9fe143652c870805d40ea (patch)
tree057d40b5911898163011ba1b84b8266d8b259b45
parentcfa4ac66c194046f631ce076c75516ecfdeb77ee (diff)
downloadrust-f6f814957796a8d2f1e9fe143652c870805d40ea.tar.gz
rust-f6f814957796a8d2f1e9fe143652c870805d40ea.zip
Add `#[track_caller]` to `mirbug`
-rw-r--r--compiler/rustc_borrowck/src/type_check/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_borrowck/src/type_check/mod.rs b/compiler/rustc_borrowck/src/type_check/mod.rs
index 1f745f977d4..87b0a887d1c 100644
--- a/compiler/rustc_borrowck/src/type_check/mod.rs
+++ b/compiler/rustc_borrowck/src/type_check/mod.rs
@@ -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`