diff options
| author | inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> | 2022-01-06 13:31:28 -0800 |
|---|---|---|
| committer | inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> | 2022-01-06 13:31:28 -0800 |
| commit | f6f814957796a8d2f1e9fe143652c870805d40ea (patch) | |
| tree | 057d40b5911898163011ba1b84b8266d8b259b45 | |
| parent | cfa4ac66c194046f631ce076c75516ecfdeb77ee (diff) | |
| download | rust-f6f814957796a8d2f1e9fe143652c870805d40ea.tar.gz rust-f6f814957796a8d2f1e9fe143652c870805d40ea.zip | |
Add `#[track_caller]` to `mirbug`
| -rw-r--r-- | compiler/rustc_borrowck/src/type_check/mod.rs | 1 |
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` |
