diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-03-06 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-03-09 02:05:22 +0100 |
| commit | e54a829b5795ff137e280628566e44edebe6f14b (patch) | |
| tree | 64220acc00df13c86ee4c33d9546a470ed279941 /src/librustc_codegen_llvm/debuginfo | |
| parent | 58303b77e0f7b35edd6791b6000cfbaef9cc1cfe (diff) | |
| download | rust-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.rs | 5 |
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)) } } |
