remove clones in IntroducedVariables clone

This commit is contained in:
Folkert 2022-03-19 00:03:30 +01:00
parent 4e315797b0
commit ce4f47d2e9
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 13 additions and 1 deletions

View file

@ -40,7 +40,8 @@ impl Output {
self.tail_call = Some(later);
}
self.introduced_variables.union(&other.introduced_variables);
self.introduced_variables
.union_owned(other.introduced_variables);
self.aliases.extend(other.aliases);
self.non_closures.extend(other.non_closures);
}