mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Merge pull request #2755 from rtfeldman/dense-let-constraints
Constraint gen tweaks
This commit is contained in:
commit
418e71e95c
4 changed files with 299 additions and 255 deletions
|
@ -1260,7 +1260,6 @@ fn type_to_var(
|
|||
} else {
|
||||
let mut arena = take_scratchpad();
|
||||
|
||||
// let var = type_to_variable(subs, rank, pools, &arena, typ);
|
||||
let var = type_to_variable(subs, rank, pools, &arena, aliases, typ);
|
||||
|
||||
arena.reset();
|
||||
|
@ -2128,7 +2127,8 @@ fn adjust_rank(
|
|||
|
||||
max_rank
|
||||
} else if desc_mark == visit_mark {
|
||||
// nothing changes
|
||||
// we have already visited this variable
|
||||
// (probably two variables had the same root)
|
||||
desc_rank
|
||||
} else {
|
||||
let min_rank = group_rank.min(desc_rank);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue