Hide away SemanticRepr definition

This commit is contained in:
Ayaz Hafiz 2023-05-10 17:10:58 -05:00
parent a37a0f1770
commit 31c9cc8227
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 39 additions and 30 deletions

View file

@ -9821,7 +9821,7 @@ where
let interned_unboxed_struct_layout = layout_interner.insert(*unboxed_struct_layout);
let boxed_struct_layout = Layout {
repr: LayoutRepr::Boxed(interned_unboxed_struct_layout),
semantic: SemanticRepr::None,
semantic: SemanticRepr::NONE,
};
let boxed_struct_layout = layout_interner.insert(boxed_struct_layout);
let mut answer = bumpalo::collections::Vec::with_capacity_in(field_layouts.len(), arena);
@ -9935,7 +9935,7 @@ where
let interned = layout_interner.insert(*unboxed_struct_layout);
let boxed_struct_layout = Layout {
repr: LayoutRepr::Boxed(interned),
semantic: SemanticRepr::None,
semantic: SemanticRepr::NONE,
};
let boxed_struct_layout = layout_interner.insert(boxed_struct_layout);
let mut answer = bumpalo::collections::Vec::with_capacity_in(field_layouts.len(), arena);