mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Coupon cutting
This commit is contained in:
parent
a242a90416
commit
c1b1f60630
4 changed files with 10 additions and 17 deletions
|
@ -327,6 +327,7 @@ impl Aliases {
|
|||
}
|
||||
|
||||
let old_type_variables = delayed_variables.type_variables(&mut self.variables);
|
||||
#[allow(clippy::needless_collect)] // otherwise we borrow self.variables immutably twice
|
||||
let variable_opt_abilities: Vec<_> =
|
||||
old_type_variables.iter().map(|ov| ov.opt_ability).collect();
|
||||
let new_type_variables = &subs.variables[alias_variables.type_variables().indices()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue