1
Fork 0

to_opt_poly_X_pred -> as_X_clause

This commit is contained in:
Michael Goulet 2024-05-15 12:58:41 -04:00
parent 550d1b4fb6
commit 2025e44ef8
9 changed files with 23 additions and 23 deletions

View file

@ -455,7 +455,7 @@ impl<'tcx, I: Iterator<Item = ty::Predicate<'tcx>>> Iterator for FilterToTraits<
fn next(&mut self) -> Option<ty::PolyTraitRef<'tcx>> {
while let Some(pred) = self.base_iterator.next() {
if let Some(data) = pred.to_opt_poly_trait_pred() {
if let Some(data) = pred.as_trait_clause() {
return Some(data.map_bound(|t| t.trait_ref));
}
}