make reference mut

This commit is contained in:
Folkert 2022-03-02 14:52:48 +01:00
parent 4643148470
commit ef5a81f731
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -399,7 +399,7 @@ pub fn sort_can_defs(
) -> (Result<Vec<Declaration>, RuntimeError>, Output) {
let CanDefs {
refs_by_symbol,
can_defs_by_symbol,
mut can_defs_by_symbol,
aliases,
} = defs;
@ -583,7 +583,7 @@ pub fn sort_can_defs(
&group,
&env.closures,
&mut all_successors_with_self,
&can_defs_by_symbol,
&mut can_defs_by_symbol,
&mut declarations,
);
}
@ -717,7 +717,7 @@ pub fn sort_can_defs(
group,
&env.closures,
&mut all_successors_with_self,
&can_defs_by_symbol,
&mut can_defs_by_symbol,
&mut declarations,
);
}
@ -739,7 +739,7 @@ fn group_to_declaration(
group: &[Symbol],
closures: &MutMap<Symbol, References>,
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>,
) {
use Declaration::*;