mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 11:22:19 +00:00
non mut layout interner
This commit is contained in:
parent
881a0e8abf
commit
c44da622e5
2 changed files with 5 additions and 5 deletions
|
@ -3106,7 +3106,7 @@ fn update<'a>(
|
|||
|
||||
reset_reuse::insert_reset_reuse_operations(
|
||||
arena,
|
||||
&mut layout_interner,
|
||||
&layout_interner,
|
||||
module_id,
|
||||
ident_ids,
|
||||
&mut update_mode_ids,
|
||||
|
|
|
@ -24,7 +24,7 @@ To allow for the reuse of memory allocation when said memory is no longer used.
|
|||
*/
|
||||
pub fn insert_reset_reuse_operations<'a, 'i>(
|
||||
arena: &'a Bump,
|
||||
layout_interner: &'i mut STLayoutInterner<'a>,
|
||||
layout_interner: &'i STLayoutInterner<'a>,
|
||||
home: ModuleId,
|
||||
ident_ids: &'i mut IdentIds,
|
||||
update_mode_ids: &'i mut UpdateModeIds,
|
||||
|
@ -51,7 +51,7 @@ pub fn insert_reset_reuse_operations<'a, 'i>(
|
|||
|
||||
fn insert_reset_reuse_operations_proc<'a, 'i>(
|
||||
arena: &'a Bump,
|
||||
layout_interner: &'i mut STLayoutInterner<'a>,
|
||||
layout_interner: &'i STLayoutInterner<'a>,
|
||||
home: ModuleId,
|
||||
ident_ids: &'i mut IdentIds,
|
||||
update_mode_ids: &'i mut UpdateModeIds,
|
||||
|
@ -89,7 +89,7 @@ fn insert_reset_reuse_operations_proc<'a, 'i>(
|
|||
|
||||
fn insert_reset_reuse_operations_stmt<'a, 'i>(
|
||||
arena: &'a Bump,
|
||||
layout_interner: &'i mut STLayoutInterner<'a>,
|
||||
layout_interner: &'i STLayoutInterner<'a>,
|
||||
home: ModuleId,
|
||||
ident_ids: &'i mut IdentIds,
|
||||
update_mode_ids: &'i mut UpdateModeIds,
|
||||
|
@ -1109,7 +1109,7 @@ impl<'a> ReuseEnvironment<'a> {
|
|||
}
|
||||
|
||||
fn can_reuse_layout_tag<'a, 'i>(
|
||||
layout_interner: &'i mut STLayoutInterner<'a>,
|
||||
layout_interner: &'i STLayoutInterner<'a>,
|
||||
environment: &ReuseEnvironment<'a>,
|
||||
layout: &InLayout<'a>,
|
||||
) -> Reuse {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue