mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
fuse RC operations on records/closures
This commit is contained in:
parent
84d5cbc4f1
commit
bacc7a9c6b
3 changed files with 90 additions and 20 deletions
|
@ -183,7 +183,11 @@ impl<'a> Proc<'a> {
|
|||
};
|
||||
|
||||
for (_, proc) in procs.iter_mut() {
|
||||
let b = expand_rc::expand_and_cancel(&mut env, arena.alloc(proc.body.clone()));
|
||||
let b = expand_rc::expand_and_cancel_proc(
|
||||
&mut env,
|
||||
arena.alloc(proc.body.clone()),
|
||||
proc.args,
|
||||
);
|
||||
proc.body = b.clone();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue