@@ -405,14 +405,14 @@ impl<'tcx, O: Elaboratable<'tcx>> Iterator for Elaborator<'tcx, O> {
405405pub fn supertraits < ' tcx > (
406406 tcx : TyCtxt < ' tcx > ,
407407 trait_ref : ty:: PolyTraitRef < ' tcx > ,
408- ) -> FilterToTraits < Elaborator < ' tcx , ty:: Predicate < ' tcx > > > {
408+ ) -> FilterToTraits < Elaborator < ' tcx , ty:: Clause < ' tcx > > > {
409409 elaborate ( tcx, [ trait_ref. upcast ( tcx) ] ) . filter_only_self ( ) . filter_to_traits ( )
410410}
411411
412412pub fn transitive_bounds < ' tcx > (
413413 tcx : TyCtxt < ' tcx > ,
414414 trait_refs : impl Iterator < Item = ty:: PolyTraitRef < ' tcx > > ,
415- ) -> FilterToTraits < Elaborator < ' tcx , ty:: Predicate < ' tcx > > > {
415+ ) -> FilterToTraits < Elaborator < ' tcx , ty:: Clause < ' tcx > > > {
416416 elaborate ( tcx, trait_refs. map ( |trait_ref| trait_ref. upcast ( tcx) ) )
417417 . filter_only_self ( )
418418 . filter_to_traits ( )
@@ -427,7 +427,7 @@ pub fn transitive_bounds_that_define_assoc_item<'tcx>(
427427 tcx : TyCtxt < ' tcx > ,
428428 trait_refs : impl Iterator < Item = ty:: PolyTraitRef < ' tcx > > ,
429429 assoc_name : Ident ,
430- ) -> FilterToTraits < Elaborator < ' tcx , ty:: Predicate < ' tcx > > > {
430+ ) -> FilterToTraits < Elaborator < ' tcx , ty:: Clause < ' tcx > > > {
431431 elaborate ( tcx, trait_refs. map ( |trait_ref| trait_ref. upcast ( tcx) ) )
432432 . filter_only_self_that_defines ( assoc_name)
433433 . filter_to_traits ( )
@@ -437,7 +437,7 @@ pub fn transitive_bounds_that_define_assoc_item<'tcx>(
437437// Other
438438///////////////////////////////////////////////////////////////////////////
439439
440- impl < ' tcx > Elaborator < ' tcx , ty:: Predicate < ' tcx > > {
440+ impl < ' tcx > Elaborator < ' tcx , ty:: Clause < ' tcx > > {
441441 fn filter_to_traits ( self ) -> FilterToTraits < Self > {
442442 FilterToTraits { base_iterator : self }
443443 }
@@ -449,7 +449,7 @@ pub struct FilterToTraits<I> {
449449 base_iterator : I ,
450450}
451451
452- impl < ' tcx , I : Iterator < Item = ty:: Predicate < ' tcx > > > Iterator for FilterToTraits < I > {
452+ impl < ' tcx , I : Iterator < Item = ty:: Clause < ' tcx > > > Iterator for FilterToTraits < I > {
453453 type Item = ty:: PolyTraitRef < ' tcx > ;
454454
455455 fn next ( & mut self ) -> Option < ty:: PolyTraitRef < ' tcx > > {
0 commit comments