We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d34e15e commit 5753e59Copy full SHA for 5753e59
compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs
@@ -411,6 +411,7 @@ impl<'tcx> ConstToPat<'tcx> {
411
let err = TypeNotStructural { span, non_sm_ty: *pointee_ty };
412
tcx.sess.emit_err(err);
413
}
414
+ tcx.sess.delay_span_bug(span, "`saw_const_match_error` set but no error?");
415
// We errored, so the pattern we generate is irrelevant.
416
PatKind::Wild
417
0 commit comments