Revert "Attempt a mono/ approach for List.get"

This reverts commit f0b76f41da.
This commit is contained in:
Richard Feldman 2020-04-25 06:19:10 -04:00
parent f0b76f41da
commit d97e16de7e
2 changed files with 5 additions and 147 deletions

View file

@ -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)
}
}