mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
Accept a reference instead of owned value
This commit is contained in:
parent
31fad98eab
commit
54ead11f5d
@ -39,7 +39,7 @@ pub fn constrain_declaration(
|
|||||||
home: ModuleId,
|
home: ModuleId,
|
||||||
var_store: &VarStore,
|
var_store: &VarStore,
|
||||||
region: Region,
|
region: Region,
|
||||||
loc_expr: Located<Expr>,
|
loc_expr: &Located<Expr>,
|
||||||
_declared_idents: &ImMap<Ident, (Symbol, Region)>,
|
_declared_idents: &ImMap<Ident, (Symbol, Region)>,
|
||||||
expected: Expected<Type>,
|
expected: Expected<Type>,
|
||||||
) -> Constraint {
|
) -> Constraint {
|
||||||
|
@ -114,7 +114,7 @@ pub fn uniq_expr_with(
|
|||||||
home,
|
home,
|
||||||
&var_store,
|
&var_store,
|
||||||
Region::zero(),
|
Region::zero(),
|
||||||
loc_expr,
|
&loc_expr,
|
||||||
declared_idents,
|
declared_idents,
|
||||||
expected2,
|
expected2,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user