mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Remove a couple vec allocs
This commit is contained in:
parent
5cc6727e9f
commit
a47dc711f3
2 changed files with 14 additions and 20 deletions
|
@ -1482,8 +1482,8 @@ fn constrain_typed_def(
|
|||
|
||||
constrain_def_make_constraint(
|
||||
constraints,
|
||||
new_rigid_variables,
|
||||
new_infer_variables,
|
||||
new_rigid_variables.into_iter(),
|
||||
new_infer_variables.into_iter(),
|
||||
expr_con,
|
||||
body_con,
|
||||
def_pattern_state,
|
||||
|
@ -1517,8 +1517,8 @@ fn constrain_typed_def(
|
|||
|
||||
constrain_def_make_constraint(
|
||||
constraints,
|
||||
new_rigid_variables,
|
||||
new_infer_variables,
|
||||
new_rigid_variables.into_iter(),
|
||||
new_infer_variables.into_iter(),
|
||||
expr_con,
|
||||
body_con,
|
||||
def_pattern_state,
|
||||
|
@ -1683,8 +1683,8 @@ fn constrain_def(
|
|||
|
||||
constrain_def_make_constraint(
|
||||
constraints,
|
||||
vec![],
|
||||
vec![],
|
||||
std::iter::empty(),
|
||||
std::iter::empty(),
|
||||
expr_con,
|
||||
body_con,
|
||||
def_pattern_state,
|
||||
|
@ -1695,8 +1695,8 @@ fn constrain_def(
|
|||
|
||||
pub fn constrain_def_make_constraint(
|
||||
constraints: &mut Constraints,
|
||||
new_rigid_variables: Vec<Variable>,
|
||||
new_infer_variables: Vec<Variable>,
|
||||
new_rigid_variables: impl Iterator<Item = Variable>,
|
||||
new_infer_variables: impl Iterator<Item = Variable>,
|
||||
expr_con: Constraint,
|
||||
body_con: Constraint,
|
||||
def_pattern_state: PatternState,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue