mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Have Procs store pending_specializations by default
This commit is contained in:
parent
e054131cdd
commit
1c828f7811
1 changed files with 13 additions and 1 deletions
|
@ -35,7 +35,7 @@ pub struct Proc<'a> {
|
||||||
pub ret_layout: Layout<'a>,
|
pub ret_layout: Layout<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Default)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct Procs<'a> {
|
pub struct Procs<'a> {
|
||||||
pub partial_procs: MutMap<Symbol, PartialProc<'a>>,
|
pub partial_procs: MutMap<Symbol, PartialProc<'a>>,
|
||||||
pub module_thunks: MutSet<Symbol>,
|
pub module_thunks: MutSet<Symbol>,
|
||||||
|
@ -51,6 +51,18 @@ pub enum InProgressProc<'a> {
|
||||||
Done(Proc<'a>),
|
Done(Proc<'a>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> Default for Procs<'a> {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
partial_procs: MutMap::default(),
|
||||||
|
module_thunks: MutSet::default(),
|
||||||
|
pending_specializations: Some(MutMap::default()),
|
||||||
|
specialized: MutMap::default(),
|
||||||
|
runtime_errors: MutMap::default(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<'a> Procs<'a> {
|
impl<'a> Procs<'a> {
|
||||||
// TODO trim down these arguments!
|
// TODO trim down these arguments!
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue