mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Make repr private and accessible only via the interner
This commit is contained in:
parent
107c6b0777
commit
457cdabc5c
30 changed files with 294 additions and 288 deletions
|
@ -483,9 +483,9 @@ fn specialize_drops_stmt<'a, 'i>(
|
|||
|
||||
// This decremented symbol was not incremented before, perhaps the children were.
|
||||
let in_layout = environment.get_symbol_layout(symbol);
|
||||
let runtime_layout = layout_interner.runtime_representation(*in_layout);
|
||||
let runtime_repr = layout_interner.runtime_representation(*in_layout);
|
||||
|
||||
let updated_stmt = match runtime_layout.repr {
|
||||
let updated_stmt = match runtime_repr {
|
||||
// Layout has children, try to inline them.
|
||||
LayoutRepr::Struct(field_layouts) => specialize_struct(
|
||||
arena,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue