mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Do not clone signature
This commit is contained in:
parent
de17bab87c
commit
3897c46a7b
1 changed files with 1 additions and 8 deletions
|
@ -3748,14 +3748,7 @@ fn rec_defs_help(
|
|||
|
||||
hybrid_and_flex_info.vars.extend(new_infer_variables);
|
||||
|
||||
let signature_index = {
|
||||
let typ =
|
||||
types.clone_with_variable_substitutions(signature, &Default::default());
|
||||
constraints.push_type(
|
||||
types, // TODO(types-soa) remove clone
|
||||
typ,
|
||||
)
|
||||
};
|
||||
let signature_index = constraints.push_type(types, signature);
|
||||
|
||||
let annotation_expected = FromAnnotation(
|
||||
def.loc_pattern.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue