Skip to content

Commit 3b0af1d

Browse files
committed
lower_pattern_unadjusted: cleanup Slice(..) branch.
1 parent 2a9f1f8 commit 3b0af1d

File tree

1 file changed

+3
-8
lines changed
  • src/librustc_mir/hair/pattern

1 file changed

+3
-8
lines changed

src/librustc_mir/hair/pattern/mod.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -550,15 +550,10 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
550550

551551
hir::PatKind::Slice(ref prefix, ref slice, ref suffix) => {
552552
match ty.kind {
553-
ty::Slice(..) |
554-
ty::Array(..) =>
555-
self.slice_or_array_pattern(pat.span, ty, prefix, slice, suffix),
556-
_ => span_bug!(
557-
pat.span,
558-
"unexpanded type for vector pattern: {:?}",
559-
ty
560-
),
553+
ty::Slice(..) | ty::Array(..) => {}
554+
_ => span_bug!(pat.span, "unexpanded type for vector pattern: {:?}", ty),
561555
}
556+
self.slice_or_array_pattern(pat.span, ty, prefix, slice, suffix)
562557
}
563558

564559
hir::PatKind::Tuple(ref subpatterns, ddpos) => {

0 commit comments

Comments
 (0)