@@ -405,14 +405,14 @@ impl<'tcx, O: Elaboratable<'tcx>> Iterator for Elaborator<'tcx, O> {
405
405
pub fn supertraits < ' tcx > (
406
406
tcx : TyCtxt < ' tcx > ,
407
407
trait_ref : ty:: PolyTraitRef < ' tcx > ,
408
- ) -> FilterToTraits < Elaborator < ' tcx , ty:: Predicate < ' tcx > > > {
408
+ ) -> FilterToTraits < Elaborator < ' tcx , ty:: Clause < ' tcx > > > {
409
409
elaborate ( tcx, [ trait_ref. upcast ( tcx) ] ) . filter_only_self ( ) . filter_to_traits ( )
410
410
}
411
411
412
412
pub fn transitive_bounds < ' tcx > (
413
413
tcx : TyCtxt < ' tcx > ,
414
414
trait_refs : impl Iterator < Item = ty:: PolyTraitRef < ' tcx > > ,
415
- ) -> FilterToTraits < Elaborator < ' tcx , ty:: Predicate < ' tcx > > > {
415
+ ) -> FilterToTraits < Elaborator < ' tcx , ty:: Clause < ' tcx > > > {
416
416
elaborate ( tcx, trait_refs. map ( |trait_ref| trait_ref. upcast ( tcx) ) )
417
417
. filter_only_self ( )
418
418
. filter_to_traits ( )
@@ -427,7 +427,7 @@ pub fn transitive_bounds_that_define_assoc_item<'tcx>(
427
427
tcx : TyCtxt < ' tcx > ,
428
428
trait_refs : impl Iterator < Item = ty:: PolyTraitRef < ' tcx > > ,
429
429
assoc_name : Ident ,
430
- ) -> FilterToTraits < Elaborator < ' tcx , ty:: Predicate < ' tcx > > > {
430
+ ) -> FilterToTraits < Elaborator < ' tcx , ty:: Clause < ' tcx > > > {
431
431
elaborate ( tcx, trait_refs. map ( |trait_ref| trait_ref. upcast ( tcx) ) )
432
432
. filter_only_self_that_defines ( assoc_name)
433
433
. filter_to_traits ( )
@@ -437,7 +437,7 @@ pub fn transitive_bounds_that_define_assoc_item<'tcx>(
437
437
// Other
438
438
///////////////////////////////////////////////////////////////////////////
439
439
440
- impl < ' tcx > Elaborator < ' tcx , ty:: Predicate < ' tcx > > {
440
+ impl < ' tcx > Elaborator < ' tcx , ty:: Clause < ' tcx > > {
441
441
fn filter_to_traits ( self ) -> FilterToTraits < Self > {
442
442
FilterToTraits { base_iterator : self }
443
443
}
@@ -449,7 +449,7 @@ pub struct FilterToTraits<I> {
449
449
base_iterator : I ,
450
450
}
451
451
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 > {
453
453
type Item = ty:: PolyTraitRef < ' tcx > ;
454
454
455
455
fn next ( & mut self ) -> Option < ty:: PolyTraitRef < ' tcx > > {
0 commit comments