mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
use Vec instead of ImSet
This commit is contained in:
parent
affacb66be
commit
fc5e09a9e3
1 changed files with 3 additions and 7 deletions
|
@ -1628,13 +1628,9 @@ fn correct_mutual_recursive_type_alias<'a>(
|
|||
original_aliases: &SendMap<Symbol, Alias>,
|
||||
var_store: &mut VarStore,
|
||||
) -> SendMap<Symbol, Alias> {
|
||||
let mut symbols_introduced = ImSet::default();
|
||||
let symbols_introduced: Vec<Symbol> = original_aliases.keys().copied().collect();
|
||||
|
||||
for (key, _) in original_aliases.iter() {
|
||||
symbols_introduced.insert(*key);
|
||||
}
|
||||
|
||||
let all_successors_with_self = |symbol: &Symbol| -> ImSet<Symbol> {
|
||||
let all_successors_with_self = |symbol: &Symbol| -> Vec<Symbol> {
|
||||
match original_aliases.get(symbol) {
|
||||
Some(alias) => {
|
||||
let mut loc_succ = alias.typ.symbols();
|
||||
|
@ -1643,7 +1639,7 @@ fn correct_mutual_recursive_type_alias<'a>(
|
|||
|
||||
loc_succ
|
||||
}
|
||||
None => ImSet::default(),
|
||||
None => vec![],
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue