Skip to content

Commit 5753e59

Browse files
committed
better ICE than sorry
1 parent d34e15e commit 5753e59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs

+1
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ impl<'tcx> ConstToPat<'tcx> {
411411
let err = TypeNotStructural { span, non_sm_ty: *pointee_ty };
412412
tcx.sess.emit_err(err);
413413
}
414+
tcx.sess.delay_span_bug(span, "`saw_const_match_error` set but no error?");
414415
// We errored, so the pattern we generate is irrelevant.
415416
PatKind::Wild
416417
}

0 commit comments

Comments
 (0)