File tree 1 file changed +12
-0
lines changed
compiler/rustc_middle/src/ty
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,10 @@ where
589
589
fn next ( & mut self ) -> Option < Self :: Item > {
590
590
Some ( EarlyBinder ( self . it . next ( ) ?) . subst ( self . tcx , self . substs ) )
591
591
}
592
+
593
+ fn size_hint ( & self ) -> ( usize , Option < usize > ) {
594
+ self . it . size_hint ( )
595
+ }
592
596
}
593
597
594
598
impl < ' tcx , I : IntoIterator > DoubleEndedIterator for SubstIter < ' _ , ' tcx , I >
@@ -631,6 +635,10 @@ where
631
635
fn next ( & mut self ) -> Option < Self :: Item > {
632
636
Some ( EarlyBinder ( * self . it . next ( ) ?) . subst ( self . tcx , self . substs ) )
633
637
}
638
+
639
+ fn size_hint ( & self ) -> ( usize , Option < usize > ) {
640
+ self . it . size_hint ( )
641
+ }
634
642
}
635
643
636
644
impl < ' tcx , I : IntoIterator > DoubleEndedIterator for SubstIterCopied < ' _ , ' tcx , I >
@@ -660,6 +668,10 @@ impl<T: Iterator> Iterator for EarlyBinderIter<T> {
660
668
fn next ( & mut self ) -> Option < Self :: Item > {
661
669
self . t . next ( ) . map ( |i| EarlyBinder ( i) )
662
670
}
671
+
672
+ fn size_hint ( & self ) -> ( usize , Option < usize > ) {
673
+ self . t . size_hint ( )
674
+ }
663
675
}
664
676
665
677
impl < ' tcx , T : TypeFoldable < ' tcx > > ty:: EarlyBinder < T > {
You can’t perform that action at this time.
0 commit comments