mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Do not clone return type
This commit is contained in:
parent
9e09914be2
commit
b0be1ed08e
1 changed files with 1 additions and 5 deletions
|
@ -1717,11 +1717,7 @@ fn constrain_function_def(
|
|||
let ret_var = function_def.return_type;
|
||||
let closure_var = function_def.closure_type;
|
||||
|
||||
let ret_type_index = {
|
||||
// TODO(types-soa) get rid of clone
|
||||
let typ = types.clone_with_variable_substitutions(ret_type, &Default::default());
|
||||
constraints.push_type(types, typ)
|
||||
};
|
||||
let ret_type_index = constraints.push_type(types, ret_type);
|
||||
|
||||
vars.push(ret_var);
|
||||
vars.push(closure_var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue