Skip to content

Commit 99852e0

Browse files
committed
A ConstantValue constructor with a slice pattern is an error
1 parent c3d0445 commit 99852e0

File tree

1 file changed

+0
-1
lines changed
  • compiler/rustc_mir_build/src/thir/pattern

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,6 @@ fn specialize_one_pattern<'p, 'tcx>(
25592559
let suffix = suffix.iter().enumerate().map(|(i, p)| (arity - suffix.len() + i, p));
25602560
Some(ctor_wild_subpatterns.replace_fields_indexed(prefix.chain(suffix)))
25612561
}
2562-
ConstantValue(_) => None,
25632562
_ => span_bug!(pat.span, "unexpected ctor {:?} for slice pat", constructor),
25642563
},
25652564

0 commit comments

Comments
 (0)