Make InstantiatedPredicates impl IntoIterator
This commit is contained in:
parent
91fd862df0
commit
9b28edb6d7
12 changed files with 74 additions and 65 deletions
|
@ -107,11 +107,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
|
|||
instantiated_predicates: ty::InstantiatedPredicates<'tcx>,
|
||||
locations: Locations,
|
||||
) {
|
||||
for (predicate, span) in instantiated_predicates
|
||||
.predicates
|
||||
.into_iter()
|
||||
.zip(instantiated_predicates.spans.into_iter())
|
||||
{
|
||||
for (predicate, span) in instantiated_predicates {
|
||||
debug!(?predicate);
|
||||
let category = ConstraintCategory::Predicate(span);
|
||||
let predicate = self.normalize_with_category(predicate, locations, category);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue