shrink Call

This commit is contained in:
Folkert 2021-11-13 15:59:19 +01:00
parent 13713ee6ad
commit 83953b0bba
5 changed files with 39 additions and 39 deletions

View file

@ -560,7 +560,7 @@ impl<'a> BorrowInfState<'a> {
arg_layouts,
..
} => {
let top_level = ProcLayout::new(self.arena, arg_layouts, *ret_layout);
let top_level = ProcLayout::new(self.arena, arg_layouts, **ret_layout);
// get the borrow signature of the applied function
let ps = param_map
@ -795,7 +795,7 @@ impl<'a> BorrowInfState<'a> {
Stmt::Ret(z),
) = (v, b)
{
let top_level = ProcLayout::new(self.arena, arg_layouts, *ret_layout);
let top_level = ProcLayout::new(self.arena, arg_layouts, **ret_layout);
if self.current_proc == *g && x == *z {
// anonymous functions (for which the ps may not be known)