Avoid unnecessary interning of enum variant part id
This commit is contained in:
parent
58303b77e0
commit
e54a829b57
@ -229,10 +229,7 @@ impl TypeMap<'ll, 'tcx> {
|
|||||||
&mut self,
|
&mut self,
|
||||||
enum_type_id: UniqueTypeId,
|
enum_type_id: UniqueTypeId,
|
||||||
) -> String {
|
) -> String {
|
||||||
let variant_part_type_id =
|
format!("{}_variant_part", self.get_unique_type_id_as_string(enum_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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user