about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
commitbbd7ce690452f28d459643d97fbae89109cf5808 (patch)
treef5724f95a121a164d45952c104300ea96d2f3cd3 /compiler/rustc_codegen_llvm/src/debuginfo
parent0d13f6afeba4935499abe0c9a07426c94492c94e (diff)
downloadrust-bbd7ce690452f28d459643d97fbae89109cf5808.tar.gz
rust-bbd7ce690452f28d459643d97fbae89109cf5808.zip
couple of clippy::perf fixes
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs1
1 files changed, 0 insertions, 1 deletions
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<VariantFieldInfo<'ll>> = variant_range
-        .clone()
         .map(|variant_index| {
             let variant_struct_type_di_node = super::build_generator_variant_struct_type_di_node(
                 cx,