Merge remote-tracking branch 'origin/trunk' into roc_alloc

This commit is contained in:
Richard Feldman 2021-05-24 20:05:12 -04:00
commit 7d7588ca19
41 changed files with 4658 additions and 2767 deletions

View file

@ -244,12 +244,12 @@ pub fn helper<'a>(
// because their bodies may reference each other.
let mut scope = Scope::default();
for ((symbol, layout), proc) in procedures.drain() {
let fn_val = build_proc_header(&env, &mut layout_ids, symbol, &layout, &proc);
let fn_val = build_proc_header(&env, &mut layout_ids, symbol, layout, &proc);
if proc.args.is_empty() {
// this is a 0-argument thunk, i.e. a top-level constant definition
// it must be in-scope everywhere in the module!
scope.insert_top_level_thunk(symbol, layout, fn_val);
scope.insert_top_level_thunk(symbol, arena.alloc(layout), fn_val);
}
headers.push((proc, fn_val));
@ -280,7 +280,7 @@ pub fn helper<'a>(
mode,
);
// fn_val.print_to_stderr();
fn_val.print_to_stderr();
// module.print_to_stderr();
panic!(
@ -294,7 +294,7 @@ pub fn helper<'a>(
&env,
&mut layout_ids,
main_fn_symbol,
&main_fn_layout,
main_fn_layout,
);
env.dibuilder.finalize();