Skip to content

Commit a7a8b5b

Browse files
committed
warn! to bug!
1 parent 3f53f55 commit a7a8b5b

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_infer/src/infer/nll_relate

1 file changed

+1
-1
lines changed

compiler/rustc_infer/src/infer/nll_relate/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ where
227227

228228
let ty = value.may_be_infer();
229229
if ty.is_ty_var() {
230-
warn!("occurs check failure in MIR typeck");
230+
span_bug!(self.delegate.span(), "occurs check failure in MIR typeck");
231231
}
232232
Ok(ty)
233233
}

0 commit comments

Comments
 (0)