Skip to content

Commit e1f00a3

Browse files
ROHITHROHITH
authored andcommitted
Fix ICE in const block deref pattern (fixes #148138)
1 parent bb42353 commit e1f00a3

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+2
-1
lines changed

compiler/rustc_hir_typeck/src/pat.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
772772
if cfg!(debug_assertions)
773773
&& self.tcx.features().deref_patterns()
774774
&& !matches!(lt.kind, PatExprKind::Lit { .. })
775+
775776
{
776-
span_delayed_bug!(
777+
self.tcx.dcx().span_delayed_bug(
777778
lt.span,
778779
format!("FIXME(deref_patterns): adjust mode unimplemented for {:?}", lt.kind),
779780
);

0 commit comments

Comments
 (0)