mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
cleanup
This commit is contained in:
parent
308b91153e
commit
3e640f78bf
2 changed files with 7 additions and 2 deletions
|
@ -1004,7 +1004,7 @@ fn type_to_union_tags<'a>(
|
|||
for (tag, tag_argument_types) in tags {
|
||||
let new_slice = VariableSubsSlice::reserve_into_subs(subs, tag_argument_types.len());
|
||||
|
||||
for (i, arg) in (new_slice.slice.start as usize..).zip(tag_argument_types) {
|
||||
for (i, arg) in (new_slice.indices()).zip(tag_argument_types) {
|
||||
let var = type_to_variable(subs, rank, pools, arena, arg);
|
||||
subs.variables[i] = var;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue