Make repr private and accessible only via the interner

This commit is contained in:
Ayaz Hafiz 2023-05-11 10:12:18 -05:00
parent 107c6b0777
commit 457cdabc5c
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
30 changed files with 294 additions and 288 deletions

View file

@ -1277,7 +1277,7 @@ fn symbol_layout_reusability<'a>(
symbol: &Symbol,
layout: &InLayout<'a>,
) -> Reuse<'a> {
match layout_interner.get(*layout).repr {
match layout_interner.get_repr(*layout) {
LayoutRepr::Union(union_layout) => {
can_reuse_union_layout_tag(union_layout, environment.get_symbol_tag(symbol))
}