@@ -110,8 +110,8 @@ pub fn elaborate_predicates<'cx, 'tcx>(
110
110
}
111
111
112
112
impl < ' 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 )
115
115
}
116
116
117
117
fn push ( & mut self , predicate : & ty:: Predicate < ' tcx > ) {
@@ -193,7 +193,7 @@ impl<'cx, 'tcx> Iterator for Elaborator<'cx, 'tcx> {
193
193
// Supertrait iterator
194
194
///////////////////////////////////////////////////////////////////////////
195
195
196
- pub type Supertraits < ' cx , ' tcx > = JustTraits < Elaborator < ' cx , ' tcx > > ;
196
+ pub type Supertraits < ' cx , ' tcx > = FilterToTraits < Elaborator < ' cx , ' tcx > > ;
197
197
198
198
pub fn supertraits < ' cx , ' tcx > ( tcx : & ' cx ty:: ctxt < ' tcx > ,
199
199
trait_ref : ty:: PolyTraitRef < ' tcx > )
@@ -215,17 +215,17 @@ pub fn transitive_bounds<'cx, 'tcx>(tcx: &'cx ty::ctxt<'tcx>,
215
215
216
216
/// A filter around an iterator of predicates that makes it yield up
217
217
/// just trait references.
218
- pub struct JustTraits < I > {
218
+ pub struct FilterToTraits < I > {
219
219
base_iterator : I
220
220
}
221
221
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 }
225
225
}
226
226
}
227
227
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 > {
229
229
type Item = ty:: PolyTraitRef < ' tcx > ;
230
230
231
231
fn next ( & mut self ) -> Option < ty:: PolyTraitRef < ' tcx > > {
0 commit comments