mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
make reference mut
This commit is contained in:
parent
4643148470
commit
ef5a81f731
1 changed files with 4 additions and 4 deletions
|
@ -399,7 +399,7 @@ pub fn sort_can_defs(
|
||||||
) -> (Result<Vec<Declaration>, RuntimeError>, Output) {
|
) -> (Result<Vec<Declaration>, RuntimeError>, Output) {
|
||||||
let CanDefs {
|
let CanDefs {
|
||||||
refs_by_symbol,
|
refs_by_symbol,
|
||||||
can_defs_by_symbol,
|
mut can_defs_by_symbol,
|
||||||
aliases,
|
aliases,
|
||||||
} = defs;
|
} = defs;
|
||||||
|
|
||||||
|
@ -583,7 +583,7 @@ pub fn sort_can_defs(
|
||||||
&group,
|
&group,
|
||||||
&env.closures,
|
&env.closures,
|
||||||
&mut all_successors_with_self,
|
&mut all_successors_with_self,
|
||||||
&can_defs_by_symbol,
|
&mut can_defs_by_symbol,
|
||||||
&mut declarations,
|
&mut declarations,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -717,7 +717,7 @@ pub fn sort_can_defs(
|
||||||
group,
|
group,
|
||||||
&env.closures,
|
&env.closures,
|
||||||
&mut all_successors_with_self,
|
&mut all_successors_with_self,
|
||||||
&can_defs_by_symbol,
|
&mut can_defs_by_symbol,
|
||||||
&mut declarations,
|
&mut declarations,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -739,7 +739,7 @@ fn group_to_declaration(
|
||||||
group: &[Symbol],
|
group: &[Symbol],
|
||||||
closures: &MutMap<Symbol, References>,
|
closures: &MutMap<Symbol, References>,
|
||||||
successors: &mut dyn FnMut(&Symbol) -> ImSet<Symbol>,
|
successors: &mut dyn FnMut(&Symbol) -> ImSet<Symbol>,
|
||||||
can_defs_by_symbol: &MutMap<Symbol, Def>,
|
can_defs_by_symbol: &mut MutMap<Symbol, Def>,
|
||||||
declarations: &mut Vec<Declaration>,
|
declarations: &mut Vec<Declaration>,
|
||||||
) {
|
) {
|
||||||
use Declaration::*;
|
use Declaration::*;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue