]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/pat.rs
Rollup merge of #94023 - krasimirgg:head-llvm-use-llvm-nm, r=Mark-Simulacrum
[rust.git] / compiler / rustc_typeck / src / check / pat.rs
index af378a0e708a260dea3892438e9580a9317295aa..e034adde1be86e1887ed089e52ef7f6b5f9298da 100644 (file)
@@ -1935,7 +1935,7 @@ fn check_array_pat_len(
         element_ty: Ty<'tcx>,
         arr_ty: Ty<'tcx>,
         slice: Option<&'tcx Pat<'tcx>>,
-        len: &ty::Const<'tcx>,
+        len: ty::Const<'tcx>,
         min_len: u64,
     ) -> (Option<Ty<'tcx>>, Ty<'tcx>) {
         if let Some(len) = len.try_eval_usize(self.tcx, self.param_env) {