Intern ModPath within RawVisibility

This commit is contained in:
Lukas Wirth 2024-06-23 16:32:16 +02:00
parent 5548aecdca
commit e052b3e9a6
4 changed files with 31 additions and 20 deletions

View file

@ -323,7 +323,7 @@ impl TraitAliasData {
pub struct ImplData {
pub target_trait: Option<Interned<TraitRef>>,
pub self_ty: Interned<TypeRef>,
pub items: Vec<AssocItemId>,
pub items: Box<[AssocItemId]>,
pub is_negative: bool,
pub is_unsafe: bool,
// box it as the vec is usually empty anyways