From bb30434392dbd3c675df25e8c6b7fdd313c2fbf2 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 2 Jul 2019 16:05:10 -0700 Subject: [PATCH] This .into_iter() call is equivalent to .iter() and will not move the array. --- lib/llvm-backend/src/code.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/llvm-backend/src/code.rs b/lib/llvm-backend/src/code.rs index ee7085069..4b9c38f77 100644 --- a/lib/llvm-backend/src/code.rs +++ b/lib/llvm-backend/src/code.rs @@ -4198,7 +4198,7 @@ impl FunctionCodeGenerator for LLVMFunctionCodeGenerator { .into_vector_value(); let mask = VectorType::const_vector( lanes - .into_iter() + .iter() .map(|l| intrinsics.i32_ty.const_int((*l).into(), false)) .collect::>() .as_slice(),