File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,10 @@ where
589589 fn next ( & mut self ) -> Option < Self :: Item > {
590590 Some ( EarlyBinder ( self . it . next ( ) ?) . subst ( self . tcx , self . substs ) )
591591 }
592+
593+ fn size_hint ( & self ) -> ( usize , Option < usize > ) {
594+ self . it . size_hint ( )
595+ }
592596}
593597
594598impl < ' tcx , I : IntoIterator > DoubleEndedIterator for SubstIter < ' _ , ' tcx , I >
@@ -631,6 +635,10 @@ where
631635 fn next ( & mut self ) -> Option < Self :: Item > {
632636 Some ( EarlyBinder ( * self . it . next ( ) ?) . subst ( self . tcx , self . substs ) )
633637 }
638+
639+ fn size_hint ( & self ) -> ( usize , Option < usize > ) {
640+ self . it . size_hint ( )
641+ }
634642}
635643
636644impl < ' tcx , I : IntoIterator > DoubleEndedIterator for SubstIterCopied < ' _ , ' tcx , I >
@@ -660,6 +668,10 @@ impl<T: Iterator> Iterator for EarlyBinderIter<T> {
660668 fn next ( & mut self ) -> Option < Self :: Item > {
661669 self . t . next ( ) . map ( |i| EarlyBinder ( i) )
662670 }
671+
672+ fn size_hint ( & self ) -> ( usize , Option < usize > ) {
673+ self . t . size_hint ( )
674+ }
663675}
664676
665677impl < ' tcx , T : TypeFoldable < ' tcx > > ty:: EarlyBinder < T > {
You can’t perform that action at this time.
0 commit comments