mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
remove all_pending_specializations from file.rs State
This commit is contained in:
parent
eb9bb12725
commit
4a454eeb25
1 changed files with 0 additions and 15 deletions
|
@ -911,9 +911,6 @@ struct State<'a> {
|
||||||
/// pending specializations in the same thread.
|
/// pending specializations in the same thread.
|
||||||
pub needs_specialization: MutSet<ModuleId>,
|
pub needs_specialization: MutSet<ModuleId>,
|
||||||
|
|
||||||
pub all_pending_specializations:
|
|
||||||
MutMap<Symbol, MutMap<ProcLayout<'a>, PendingSpecialization<'a>>>,
|
|
||||||
|
|
||||||
pub specializations_in_flight: u32,
|
pub specializations_in_flight: u32,
|
||||||
|
|
||||||
pub timings: MutMap<ModuleId, ModuleTiming>,
|
pub timings: MutMap<ModuleId, ModuleTiming>,
|
||||||
|
@ -1538,7 +1535,6 @@ where
|
||||||
unsolved_modules: MutMap::default(),
|
unsolved_modules: MutMap::default(),
|
||||||
timings: MutMap::default(),
|
timings: MutMap::default(),
|
||||||
needs_specialization: MutSet::default(),
|
needs_specialization: MutSet::default(),
|
||||||
all_pending_specializations: MutMap::default(),
|
|
||||||
specializations_in_flight: 0,
|
specializations_in_flight: 0,
|
||||||
layout_caches: std::vec::Vec::with_capacity(num_cpus::get()),
|
layout_caches: std::vec::Vec::with_capacity(num_cpus::get()),
|
||||||
procs: Procs::new_in(arena),
|
procs: Procs::new_in(arena),
|
||||||
|
@ -2067,17 +2063,6 @@ fn update<'a>(
|
||||||
log!("found specializations for {:?}", module_id);
|
log!("found specializations for {:?}", module_id);
|
||||||
let subs = solved_subs.into_inner();
|
let subs = solved_subs.into_inner();
|
||||||
|
|
||||||
for (symbol, specs) in &procs_base.specializations_for_host {
|
|
||||||
let existing = match state.all_pending_specializations.entry(*symbol) {
|
|
||||||
Vacant(entry) => entry.insert(MutMap::default()),
|
|
||||||
Occupied(entry) => entry.into_mut(),
|
|
||||||
};
|
|
||||||
|
|
||||||
for (layout, pend) in specs {
|
|
||||||
existing.insert(*layout, pend.clone());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
state
|
state
|
||||||
.module_cache
|
.module_cache
|
||||||
.top_level_thunks
|
.top_level_thunks
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue