mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Layout-cache variable invalidation must compare by root keys
After unification, variable roots can change. So, when we invalidate entries in the layout cache, we must compare for variable equivalence relative to the current state of subs.
This commit is contained in:
parent
8afdc820a6
commit
1e22a2bbcd
2 changed files with 10 additions and 4 deletions
|
@ -1479,7 +1479,7 @@ impl<'a, 'i> Env<'a, 'i> {
|
|||
right,
|
||||
)?;
|
||||
|
||||
layout_cache.invalidate(changed_variables.iter().copied());
|
||||
layout_cache.invalidate(self.subs, changed_variables.iter().copied());
|
||||
external_specializations
|
||||
.into_iter()
|
||||
.for_each(|e| e.invalidate_cache(&changed_variables));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue