diff --git a/src/librustc_typeck/check/pat.rs b/src/librustc_typeck/check/pat.rs index b3e8569f372939a6559464cfbd452f3ebff9cb37..9dbf0489470f7e7791db3a2d738b64e2b5b72d82 100644 --- a/src/librustc_typeck/check/pat.rs +++ b/src/librustc_typeck/check/pat.rs @@ -1423,7 +1423,6 @@ fn check_array_pat_len( } else if slice.is_none() { // We have a pattern with a fixed length, // which we can use to infer the length of the array. - // of the array. let updated_arr_ty = self.tcx.mk_array(element_ty, min_len); self.demand_eqtype(span, updated_arr_ty, arr_ty); return (self.tcx.types.err, updated_arr_ty);