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