mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
get fancy, store variable directly in the index
This commit is contained in:
parent
b3d9f9c2de
commit
eccb461b01
2 changed files with 6 additions and 3 deletions
|
@ -890,8 +890,8 @@ fn either_type_index_to_var(
|
|||
type_to_var(subs, rank, pools, _alias_map, typ)
|
||||
}
|
||||
Err(var_index) => {
|
||||
let var = constraints.variables[var_index.index()];
|
||||
var
|
||||
// we cheat, and store the variable directly in the index
|
||||
unsafe { Variable::from_index(var_index.index() as _) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue