Skip to content

Commit

Permalink
better ICE than sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 16, 2023
1 parent d34e15e commit 5753e59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ impl<'tcx> ConstToPat<'tcx> {
let err = TypeNotStructural { span, non_sm_ty: *pointee_ty };
tcx.sess.emit_err(err);
}
tcx.sess.delay_span_bug(span, "`saw_const_match_error` set but no error?");
// We errored, so the pattern we generate is irrelevant.
PatKind::Wild
}
Expand Down

0 comments on commit 5753e59

Please sign in to comment.