mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
fix hash problem
This commit is contained in:
parent
d894a06290
commit
a64f80dbe8
2 changed files with 6 additions and 16 deletions
|
@ -371,10 +371,8 @@ impl<'a> BorrowInfState<'a> {
|
||||||
arg_layouts,
|
arg_layouts,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
let top_level = TopLevelFunctionLayout {
|
let top_level = TopLevelFunctionLayout::new(self.arena, arg_layouts, *ret_layout);
|
||||||
arguments: arg_layouts,
|
|
||||||
result: *ret_layout,
|
|
||||||
};
|
|
||||||
// get the borrow signature of the applied function
|
// get the borrow signature of the applied function
|
||||||
let ps = self
|
let ps = self
|
||||||
.param_map
|
.param_map
|
||||||
|
@ -611,10 +609,7 @@ impl<'a> BorrowInfState<'a> {
|
||||||
Stmt::Ret(z),
|
Stmt::Ret(z),
|
||||||
) = (v, b)
|
) = (v, b)
|
||||||
{
|
{
|
||||||
let top_level = TopLevelFunctionLayout {
|
let top_level = TopLevelFunctionLayout::new(self.arena, arg_layouts, *ret_layout);
|
||||||
arguments: arg_layouts,
|
|
||||||
result: *ret_layout,
|
|
||||||
};
|
|
||||||
|
|
||||||
if self.current_proc == *g && x == *z {
|
if self.current_proc == *g && x == *z {
|
||||||
// anonymous functions (for which the ps may not be known)
|
// anonymous functions (for which the ps may not be known)
|
||||||
|
|
|
@ -687,10 +687,7 @@ impl<'a> Context<'a> {
|
||||||
arg_layouts,
|
arg_layouts,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
let top_level = TopLevelFunctionLayout {
|
let top_level = TopLevelFunctionLayout::new(self.arena, arg_layouts, *ret_layout);
|
||||||
arguments: arg_layouts,
|
|
||||||
result: *ret_layout,
|
|
||||||
};
|
|
||||||
|
|
||||||
// get the borrow signature
|
// get the borrow signature
|
||||||
let ps = self
|
let ps = self
|
||||||
|
@ -979,10 +976,8 @@ impl<'a> Context<'a> {
|
||||||
arg_layouts,
|
arg_layouts,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
let top_level = TopLevelFunctionLayout {
|
let top_level =
|
||||||
arguments: arg_layouts,
|
TopLevelFunctionLayout::new(self.arena, arg_layouts, *ret_layout);
|
||||||
result: *ret_layout,
|
|
||||||
};
|
|
||||||
|
|
||||||
// get the borrow signature
|
// get the borrow signature
|
||||||
let ps = self
|
let ps = self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue