mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Merge pull request #4874 from roc-lang/borrow-own-host-exposed
force host-exposed to always own params
This commit is contained in:
commit
9a146d80a4
3 changed files with 24 additions and 4 deletions
|
@ -401,8 +401,9 @@ impl<'a> Proc<'a> {
|
|||
ident_ids: &'i mut IdentIds,
|
||||
update_mode_ids: &'i mut UpdateModeIds,
|
||||
procs: &mut MutMap<(Symbol, ProcLayout<'a>), Proc<'a>>,
|
||||
host_exposed_procs: &[Symbol],
|
||||
) {
|
||||
let borrow_params = arena.alloc(crate::borrow::infer_borrow(arena, procs));
|
||||
let borrow_params = crate::borrow::infer_borrow(arena, procs, host_exposed_procs);
|
||||
|
||||
crate::inc_dec::visit_procs(
|
||||
arena,
|
||||
|
@ -410,7 +411,7 @@ impl<'a> Proc<'a> {
|
|||
home,
|
||||
ident_ids,
|
||||
update_mode_ids,
|
||||
borrow_params,
|
||||
arena.alloc(borrow_params),
|
||||
procs,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue