mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
store module thunks
This commit is contained in:
parent
092db87474
commit
64955f23ff
1 changed files with 8 additions and 0 deletions
|
@ -359,6 +359,7 @@ struct ModuleCache<'a> {
|
|||
|
||||
/// Various information
|
||||
imports: MutMap<ModuleId, MutSet<ModuleId>>,
|
||||
top_level_thunks: MutMap<ModuleId, MutSet<Symbol>>,
|
||||
documentation: MutMap<ModuleId, ModuleDocumentation>,
|
||||
can_problems: MutMap<ModuleId, Vec<roc_problem::can::Problem>>,
|
||||
type_problems: MutMap<ModuleId, Vec<solve::TypeError>>,
|
||||
|
@ -1917,6 +1918,13 @@ fn update<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
state
|
||||
.module_cache
|
||||
.top_level_thunks
|
||||
.entry(module_id)
|
||||
.or_default()
|
||||
.extend(procs.module_thunks.iter().copied());
|
||||
|
||||
let found_specializations_module = FoundSpecializationsModule {
|
||||
layout_cache,
|
||||
module_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue