some foundations for zero-sized values in closures

This commit is contained in:
Folkert 2020-11-08 01:37:24 +01:00
parent 114e08f05f
commit 2a872f180a
4 changed files with 56 additions and 7 deletions

View file

@ -1612,6 +1612,19 @@ fn update<'a>(
{
// state.timings.insert(module_id, module_timing);
// display the mono IR of the module, for debug purposes
if false {
let procs_string = state
.procedures
.values()
.map(|proc| proc.to_pretty(200))
.collect::<Vec<_>>();
let result = procs_string.join("\n");
println!("{}", result);
}
Proc::insert_refcount_operations(arena, &mut state.procedures);
msg_tx