mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
many extra gen_primitives tests for gen-dev
This commit is contained in:
parent
0e43510103
commit
515d60a138
7 changed files with 263 additions and 118 deletions
|
@ -428,14 +428,19 @@ fn eq_tag_union_help<'a>(
|
|||
)),
|
||||
));
|
||||
|
||||
let compare_ptr_or_value =
|
||||
if_pointers_equal_return_true(root, ident_ids, operands, root.arena.alloc(compare_values));
|
||||
|
||||
if is_non_recursive {
|
||||
compare_ptr_or_value
|
||||
compare_values
|
||||
} else {
|
||||
let compare_ptr_or_value = if_pointers_equal_return_true(
|
||||
root,
|
||||
ident_ids,
|
||||
operands,
|
||||
root.arena.alloc(compare_values),
|
||||
);
|
||||
|
||||
let union_layout =
|
||||
layout_interner.insert_direct_no_semantic(LayoutRepr::Union(union_layout));
|
||||
|
||||
let loop_params_iter = operands.iter().map(|arg| Param {
|
||||
symbol: *arg,
|
||||
ownership: Ownership::Borrowed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue