mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Fix macro
This commit is contained in:
parent
c827349ae2
commit
a8453b0fca
1 changed files with 3 additions and 3 deletions
|
@ -3229,9 +3229,9 @@ fn deep_copy_var_help(
|
|||
|
||||
macro_rules! copy_union_tags {
|
||||
($tags:expr) => {{
|
||||
let new_variable_slices = SubsSlice::reserve_variable_slices(subs, tags.len());
|
||||
let new_variable_slices = SubsSlice::reserve_variable_slices(subs, $tags.len());
|
||||
|
||||
let it = (new_variable_slices.indices()).zip(tags.variables());
|
||||
let it = (new_variable_slices.indices()).zip($tags.variables());
|
||||
for (target_index, index) in it {
|
||||
let slice = subs[index];
|
||||
|
||||
|
@ -3239,7 +3239,7 @@ fn deep_copy_var_help(
|
|||
subs.variable_slices[target_index] = new_variables;
|
||||
}
|
||||
|
||||
UnionTags::from_slices(tags.tag_names(), new_variable_slices)
|
||||
UnionTags::from_slices($tags.tag_names(), new_variable_slices)
|
||||
}};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue