mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-01 10:52:18 +00:00
Eliminate clone of signature
This commit is contained in:
parent
75ad2ffede
commit
16f622b0df
1 changed files with 1 additions and 5 deletions
|
@ -2480,11 +2480,7 @@ fn constrain_typed_def(
|
|||
rigids: ftv,
|
||||
};
|
||||
|
||||
let signature_index = {
|
||||
// TODO(types-soa) get rid of 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 = constraints.push_expected_type(FromAnnotation(
|
||||
def.loc_pattern.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue