mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Remove KnownSizeIterator
This commit is contained in:
parent
13441a0243
commit
d0c6c06ca1
1 changed files with 4 additions and 5 deletions
|
@ -12,7 +12,6 @@ use roc_can::expr::Expr::{self, *};
|
||||||
use roc_can::expr::{AccessorData, AnnotatedMark, ClosureData, Field, WhenBranch};
|
use roc_can::expr::{AccessorData, AnnotatedMark, ClosureData, Field, WhenBranch};
|
||||||
use roc_can::pattern::Pattern;
|
use roc_can::pattern::Pattern;
|
||||||
use roc_collections::all::{HumanIndex, MutMap, SendMap};
|
use roc_collections::all::{HumanIndex, MutMap, SendMap};
|
||||||
use roc_collections::KnownSizeIterator;
|
|
||||||
use roc_module::ident::{Lowercase, TagName};
|
use roc_module::ident::{Lowercase, TagName};
|
||||||
use roc_module::symbol::{ModuleId, Symbol};
|
use roc_module::symbol::{ModuleId, Symbol};
|
||||||
use roc_region::all::{Loc, Region};
|
use roc_region::all::{Loc, Region};
|
||||||
|
@ -1684,10 +1683,10 @@ fn attach_resolution_constraints(
|
||||||
constraint: Constraint,
|
constraint: Constraint,
|
||||||
) -> Constraint {
|
) -> Constraint {
|
||||||
let resolution_constrs = env.resolutions_to_make.drain(..).map(Constraint::Resolve);
|
let resolution_constrs = env.resolutions_to_make.drain(..).map(Constraint::Resolve);
|
||||||
constraints.and_constraint(KnownSizeIterator::from_2(
|
let all_constrs: Vec<_> = std::iter::once(constraint)
|
||||||
std::iter::once(constraint),
|
.chain(resolution_constrs)
|
||||||
resolution_constrs,
|
.collect();
|
||||||
))
|
constraints.and_constraint(all_constrs)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn constrain_def(
|
fn constrain_def(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue