From bbd7ce690452f28d459643d97fbae89109cf5808 Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Wed, 13 Apr 2022 22:18:28 +0200 Subject: couple of clippy::perf fixes --- compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler/rustc_codegen_llvm/src/debuginfo') diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs index 31bb9ed3185..d6e2c8ccdf4 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs @@ -372,7 +372,6 @@ fn build_union_fields_for_direct_tag_generator<'ll, 'tcx>( // Build the type node for each field. let variant_field_infos: SmallVec> = variant_range - .clone() .map(|variant_index| { let variant_struct_type_di_node = super::build_generator_variant_struct_type_di_node( cx, -- cgit 1.4.1-3-g733a5