mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
New data structure for storing sorted abilities bound to a variable
This commit is contained in:
parent
229548571b
commit
1e6181d2cb
7 changed files with 66 additions and 29 deletions
|
@ -1345,7 +1345,7 @@ fn resolve_abilities<'a>(
|
|||
.introduced_variables
|
||||
.able
|
||||
.iter()
|
||||
.partition(|av| av.abilities.iter().any(|ab| *ab == ability));
|
||||
.partition(|av| av.abilities.contains(&ability));
|
||||
|
||||
let var_bound_to_ability = match variables_bound_to_ability.as_slice() {
|
||||
[one] => one.variable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue