Merge pull request #4874 from roc-lang/borrow-own-host-exposed

force host-exposed to always own params
This commit is contained in:
Ayaz 2023-01-10 14:09:09 -06:00 committed by GitHub
commit 9a146d80a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 4 deletions

View file

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