mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Thread through symbols_from_requires
This commit is contained in:
parent
59023d2a88
commit
1421aebcd3
5 changed files with 91 additions and 9 deletions
|
@ -54,7 +54,7 @@ pub struct Annotation {
|
|||
pub(crate) struct CanDefs {
|
||||
defs: Vec<Option<Def>>,
|
||||
def_ordering: DefOrdering,
|
||||
|
||||
pub(crate) abilities_in_scope: Vec<Symbol>,
|
||||
aliases: VecMap<Symbol, Alias>,
|
||||
}
|
||||
|
||||
|
@ -523,6 +523,7 @@ pub(crate) fn canonicalize_defs<'a>(
|
|||
CanDefs {
|
||||
defs,
|
||||
def_ordering,
|
||||
abilities_in_scope,
|
||||
// The result needs a thread-safe `SendMap`
|
||||
aliases,
|
||||
},
|
||||
|
@ -766,8 +767,11 @@ pub(crate) fn sort_can_defs(
|
|||
mut defs,
|
||||
def_ordering,
|
||||
aliases,
|
||||
abilities_in_scope,
|
||||
} = defs;
|
||||
|
||||
output.abilities_in_scope = abilities_in_scope;
|
||||
|
||||
for (symbol, alias) in aliases.into_iter() {
|
||||
output.aliases.insert(symbol, alias);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue