about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-03-06 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-03-09 02:05:22 +0100
commite54a829b5795ff137e280628566e44edebe6f14b (patch)
tree64220acc00df13c86ee4c33d9546a470ed279941 /src/librustc_codegen_llvm/debuginfo
parent58303b77e0f7b35edd6791b6000cfbaef9cc1cfe (diff)
downloadrust-e54a829b5795ff137e280628566e44edebe6f14b.tar.gz
rust-e54a829b5795ff137e280628566e44edebe6f14b.zip
Avoid unnecessary interning of enum variant part id
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/metadata.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs
index 5cf3d74f243..46c4a511114 100644
--- a/src/librustc_codegen_llvm/debuginfo/metadata.rs
+++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs
@@ -229,10 +229,7 @@ impl TypeMap<'ll, 'tcx> {
         &mut self,
         enum_type_id: UniqueTypeId,
     ) -> String {
-        let variant_part_type_id =
-            format!("{}_variant_part", self.get_unique_type_id_as_string(enum_type_id));
-        self.unique_id_interner.intern(&variant_part_type_id);
-        variant_part_type_id
+        format!("{}_variant_part", self.get_unique_type_id_as_string(enum_type_id))
     }
 }