mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
seen_recursion_pair is immutable
This commit is contained in:
parent
4824de5192
commit
5815807927
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ impl<'a> Env<'a> {
|
|||
debug_assert!(size_after < size_before, "nothing was removed");
|
||||
}
|
||||
|
||||
fn seen_recursion_pair(&mut self, var1: Variable, var2: Variable) -> bool {
|
||||
fn seen_recursion_pair(&self, var1: Variable, var2: Variable) -> bool {
|
||||
let (var1, var2) = (
|
||||
self.subs.get_root_key_without_compacting(var1),
|
||||
self.subs.get_root_key_without_compacting(var2),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue