mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Convert LayoutRepr::Struct into a tuple variant
This commit is contained in:
parent
a6bda6eccf
commit
a67c148be7
24 changed files with 85 additions and 128 deletions
|
@ -417,7 +417,7 @@ fn jit_to_ast_help<'a, A: ReplApp<'a>>(
|
|||
)
|
||||
},
|
||||
),
|
||||
LayoutRepr::Struct { field_layouts, .. } => {
|
||||
LayoutRepr::Struct(field_layouts) => {
|
||||
let fields = [Layout::U64, layout];
|
||||
|
||||
let result_stack_size = LayoutRepr::struct_(env.arena.alloc(fields))
|
||||
|
@ -615,7 +615,7 @@ fn addr_to_ast<'a, M: ReplAppMemory>(
|
|||
let arena_str = env.arena.alloc_str(string);
|
||||
Expr::Str(StrLiteral::PlainLine(arena_str))
|
||||
}
|
||||
(_, LayoutRepr::Struct { field_layouts, .. }) => match raw_content {
|
||||
(_, LayoutRepr::Struct (field_layouts)) => match raw_content {
|
||||
Content::Structure(FlatType::Record(fields, _)) => {
|
||||
struct_to_ast(env, mem, addr, *fields)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue