mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Revert "Attempt a mono/ approach for List.get"
This reverts commit f0b76f41da
.
This commit is contained in:
parent
f0b76f41da
commit
d97e16de7e
2 changed files with 5 additions and 147 deletions
|
@ -420,10 +420,10 @@ fn union_sorted_tags_help<'a>(
|
|||
let mut result = Vec::with_capacity_in(tags_vec.len(), arena);
|
||||
|
||||
for (tag_name, arguments) in tags_vec {
|
||||
// +1 to reserve space for the discriminant
|
||||
// resverse space for the tag discriminant
|
||||
let mut arg_layouts = Vec::with_capacity_in(arguments.len() + 1, arena);
|
||||
|
||||
// add the discriminant
|
||||
// add the tag discriminant
|
||||
arg_layouts.push(Layout::Builtin(Builtin::Int64));
|
||||
|
||||
for var in arguments {
|
||||
|
@ -434,7 +434,6 @@ fn union_sorted_tags_help<'a>(
|
|||
|
||||
result.push((tag_name, arg_layouts.into_bump_slice()));
|
||||
}
|
||||
|
||||
UnionVariant::Wrapped(result)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue