about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-03-30 19:09:59 +0200
committerGitHub <noreply@github.com>2020-03-30 19:09:59 +0200
commit7f12561135e48fce7b23d58fa6ca4970d74523e3 (patch)
treef1efe023bbde461bacb4a45de76fe0b9216266e2
parent50ab77384e8f990d64c7b7fd478b19da724d6e07 (diff)
downloadrust-7f12561135e48fce7b23d58fa6ca4970d74523e3.tar.gz
rust-7f12561135e48fce7b23d58fa6ca4970d74523e3.zip
dedup docs
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
-rw-r--r--src/librustc_typeck/check/pat.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/pat.rs b/src/librustc_typeck/check/pat.rs
index b3e8569f372..9dbf0489470 100644
--- a/src/librustc_typeck/check/pat.rs
+++ b/src/librustc_typeck/check/pat.rs
@@ -1423,7 +1423,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
         } 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);