@@ -110,8 +110,8 @@ pub fn elaborate_predicates<'cx, 'tcx>(
110110}
111111
112112impl < ' cx , ' tcx > Elaborator < ' cx , ' tcx > {
113- pub fn filter_to_traits ( self ) -> JustTraits < Elaborator < ' cx , ' tcx > > {
114- JustTraits :: new ( self )
113+ pub fn filter_to_traits ( self ) -> FilterToTraits < Elaborator < ' cx , ' tcx > > {
114+ FilterToTraits :: new ( self )
115115 }
116116
117117 fn push ( & mut self , predicate : & ty:: Predicate < ' tcx > ) {
@@ -193,7 +193,7 @@ impl<'cx, 'tcx> Iterator for Elaborator<'cx, 'tcx> {
193193// Supertrait iterator
194194///////////////////////////////////////////////////////////////////////////
195195
196- pub type Supertraits < ' cx , ' tcx > = JustTraits < Elaborator < ' cx , ' tcx > > ;
196+ pub type Supertraits < ' cx , ' tcx > = FilterToTraits < Elaborator < ' cx , ' tcx > > ;
197197
198198pub fn supertraits < ' cx , ' tcx > ( tcx : & ' cx ty:: ctxt < ' tcx > ,
199199 trait_ref : ty:: PolyTraitRef < ' tcx > )
@@ -215,17 +215,17 @@ pub fn transitive_bounds<'cx, 'tcx>(tcx: &'cx ty::ctxt<'tcx>,
215215
216216/// A filter around an iterator of predicates that makes it yield up
217217/// just trait references.
218- pub struct JustTraits < I > {
218+ pub struct FilterToTraits < I > {
219219 base_iterator : I
220220}
221221
222- impl < I > JustTraits < I > {
223- fn new ( base : I ) -> JustTraits < I > {
224- JustTraits { base_iterator : base }
222+ impl < I > FilterToTraits < I > {
223+ fn new ( base : I ) -> FilterToTraits < I > {
224+ FilterToTraits { base_iterator : base }
225225 }
226226}
227227
228- impl < ' tcx , I : Iterator < Item =ty:: Predicate < ' tcx > > > Iterator for JustTraits < I > {
228+ impl < ' tcx , I : Iterator < Item =ty:: Predicate < ' tcx > > > Iterator for FilterToTraits < I > {
229229 type Item = ty:: PolyTraitRef < ' tcx > ;
230230
231231 fn next ( & mut self ) -> Option < ty:: PolyTraitRef < ' tcx > > {
0 commit comments