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,
var_store: &VarStore,
region: Region,
loc_expr: Located<Expr>,
loc_expr: &Located<Expr>,
_declared_idents: &ImMap<Ident, (Symbol, Region)>,
expected: Expected<Type>,
) -> Constraint {

View File

@ -114,7 +114,7 @@ pub fn uniq_expr_with(
home,
&var_store,
Region::zero(),
loc_expr,
&loc_expr,
declared_idents,
expected2,
);