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) { ) -> (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::*;