This commit is contained in:
Folkert 2021-01-15 21:18:11 +01:00
parent fc5c6b9585
commit c4e2b4f5cc
2 changed files with 3 additions and 2 deletions

View file

@ -1303,8 +1303,9 @@ pub fn union_sorted_tags_help<'a>(
}
}
for (index, (tag_name, arguments)) in tags_vec.into_iter().enumerate() {
for (tag_name, arguments) in tags_vec.into_iter() {
// reserve space for the tag discriminant
let mut arg_layouts = Vec::with_capacity_in(arguments.len() + 1, arena);
// add the tag discriminant (size currently always hardcoded to i64)