mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Fix mutability lint in debug mode
This commit is contained in:
parent
5ad796271e
commit
c03c0b2978
1 changed files with 3 additions and 3 deletions
|
@ -2276,9 +2276,9 @@ macro_rules! debug_check_ir {
|
|||
|
||||
let procedures = &$state.procedures;
|
||||
|
||||
let problems = check_procs($arena, $interner, procedures);
|
||||
let problems = check_procs($arena, &mut $interner, procedures);
|
||||
if !problems.is_empty() {
|
||||
let formatted = format_problems(&interns, $interner, problems);
|
||||
let formatted = format_problems(&interns, &$interner, problems);
|
||||
eprintln!("IR PROBLEMS FOUND:\n{formatted}");
|
||||
}
|
||||
})
|
||||
|
@ -3038,7 +3038,7 @@ fn update<'a>(
|
|||
log!("specializations complete from {:?}", module_id);
|
||||
|
||||
debug_print_ir!(state, &layout_interner, ROC_PRINT_IR_AFTER_SPECIALIZATION);
|
||||
debug_check_ir!(state, arena, &mut layout_interner, ROC_CHECK_MONO_IR);
|
||||
debug_check_ir!(state, arena, layout_interner, ROC_CHECK_MONO_IR);
|
||||
|
||||
let ident_ids = state.constrained_ident_ids.get_mut(&module_id).unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue