mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
sketch of a proof of concept
This commit is contained in:
parent
79d3b0ac01
commit
4f9b27b694
6 changed files with 65 additions and 18 deletions
|
@ -1191,6 +1191,13 @@ fn introduce(subs: &mut Subs, rank: Rank, pools: &mut Pools, vars: &[Variable])
|
|||
pool.extend(vars);
|
||||
}
|
||||
|
||||
pub fn unsafe_copy_var_help(subs: &mut Subs, var: Variable) -> Variable {
|
||||
let rank = Rank::NONE;
|
||||
let mut pools = Pools::default();
|
||||
|
||||
deep_copy_var(subs, rank, &mut pools, var)
|
||||
}
|
||||
|
||||
fn deep_copy_var(subs: &mut Subs, rank: Rank, pools: &mut Pools, var: Variable) -> Variable {
|
||||
let copy = deep_copy_var_help(subs, rank, pools, var);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue