manually track visited varibles in deep_copy_var_to

This commit is contained in:
Folkert 2021-11-20 01:39:57 +01:00
parent 2bccc2d28d
commit 594e754e1e
2 changed files with 53 additions and 23 deletions

View file

@ -1373,7 +1373,7 @@ fn instantiate_rigids_help(subs: &mut Subs, max_rank: Rank, initial: Variable) {
}
// we have tracked all visited variables, and can now traverse them
// in one go (without looking at the UnificationTable) and clear copy field
// in one go (without looking at the UnificationTable) and clear the copy field
for var in visited {
let descriptor = subs.get_ref_mut(var);