fuse RC operations on records/closures

This commit is contained in:
Folkert 2021-02-13 02:03:36 +01:00
parent 84d5cbc4f1
commit bacc7a9c6b
3 changed files with 90 additions and 20 deletions

View file

@ -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();
}
}