Accept a reference instead of owned value

This commit is contained in:
Richard Feldman 2020-03-03 01:27:19 -05:00
parent 31fad98eab
commit 54ead11f5d
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

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