mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Merge branch 'trunk' into int_a_float_a
This commit is contained in:
commit
b34436e5cb
93 changed files with 2982 additions and 1575 deletions
|
@ -1803,8 +1803,6 @@ fn update<'a>(
|
|||
if state.dependencies.solved_all() && state.goal_phase == Phase::MakeSpecializations {
|
||||
debug_assert!(work.is_empty(), "still work remaining {:?}", &work);
|
||||
|
||||
Proc::insert_refcount_operations(arena, &mut state.procedures);
|
||||
|
||||
// display the mono IR of the module, for debug purposes
|
||||
if roc_mono::ir::PRETTY_PRINT_IR_SYMBOLS {
|
||||
let procs_string = state
|
||||
|
@ -1818,6 +1816,8 @@ fn update<'a>(
|
|||
println!("{}", result);
|
||||
}
|
||||
|
||||
Proc::insert_refcount_operations(arena, &mut state.procedures);
|
||||
|
||||
msg_tx
|
||||
.send(Msg::FinishedAllSpecialization {
|
||||
subs,
|
||||
|
@ -1844,11 +1844,11 @@ fn update<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
fn finish_specialization<'a>(
|
||||
state: State<'a>,
|
||||
fn finish_specialization(
|
||||
state: State,
|
||||
subs: Subs,
|
||||
exposed_to_host: MutMap<Symbol, Variable>,
|
||||
) -> MonomorphizedModule<'a> {
|
||||
) -> MonomorphizedModule {
|
||||
let module_ids = Arc::try_unwrap(state.arc_modules)
|
||||
.unwrap_or_else(|_| panic!("There were still outstanding Arc references to module_ids"))
|
||||
.into_inner()
|
||||
|
@ -1917,8 +1917,8 @@ fn finish_specialization<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
fn finish<'a>(
|
||||
state: State<'a>,
|
||||
fn finish(
|
||||
state: State,
|
||||
solved: Solved<Subs>,
|
||||
exposed_vars_by_symbol: MutMap<Symbol, Variable>,
|
||||
documentation: MutMap<ModuleId, ModuleDocumentation>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue