mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
one more shrinkage
This commit is contained in:
parent
892447b08c
commit
54198d7da1
8 changed files with 18 additions and 16 deletions
|
@ -173,7 +173,7 @@ fn jit_to_ast_help<'a>(
|
|||
))
|
||||
}
|
||||
Content::Structure(FlatType::FunctionOrTagUnion(tag_name, _, _)) => Ok(
|
||||
single_tag_union_to_ast(env, ptr, field_layouts, tag_name.clone(), &[]),
|
||||
single_tag_union_to_ast(env, ptr, field_layouts, *tag_name.clone(), &[]),
|
||||
),
|
||||
Content::Structure(FlatType::Func(_, _, _)) => {
|
||||
// a function with a struct as the closure environment
|
||||
|
@ -435,7 +435,7 @@ fn ptr_to_ast<'a>(
|
|||
single_tag_union_to_ast(env, ptr, field_layouts, tag_name.clone(), payload_vars)
|
||||
}
|
||||
Content::Structure(FlatType::FunctionOrTagUnion(tag_name, _, _)) => {
|
||||
single_tag_union_to_ast(env, ptr, field_layouts, tag_name.clone(), &[])
|
||||
single_tag_union_to_ast(env, ptr, field_layouts, *tag_name.clone(), &[])
|
||||
}
|
||||
Content::Structure(FlatType::EmptyRecord) => {
|
||||
struct_to_ast(env, ptr, &[], &RecordFields::with_capacity(0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue