mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Have basic_type_from_layout take LayoutRepr
This commit is contained in:
parent
555cbcc87b
commit
8495f3b085
10 changed files with 403 additions and 137 deletions
|
@ -207,7 +207,11 @@ fn build_struct_helper<'a, 'ctx>(
|
|||
.get_repr(field_layout)
|
||||
.is_dropped_because_empty()
|
||||
{
|
||||
let field_type = basic_type_from_layout(env, layout_interner, field_layout);
|
||||
let field_type = basic_type_from_layout(
|
||||
env,
|
||||
layout_interner,
|
||||
layout_interner.get_repr(field_layout),
|
||||
);
|
||||
field_types.push(field_type);
|
||||
|
||||
if layout_interner.is_passed_by_reference(field_layout) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue