@@ -9,7 +9,7 @@ use crate::array;
99use crate :: cmp:: { self , Ordering } ;
1010use crate :: marker:: Destruct ;
1111use crate :: num:: NonZero ;
12- use crate :: ops:: { ChangeOutputType , ControlFlow , FromResidual , Residual , Try } ;
12+ use crate :: ops:: { Branch , ChangeOutputType , ControlFlow , FromOutput , FromResidual , Residual , Try } ;
1313
1414fn _assert_is_dyn_compatible ( _: & dyn Iterator < Item = ( ) > ) { }
1515
@@ -2168,7 +2168,7 @@ pub const trait Iterator {
21682168 where
21692169 Self : Sized ,
21702170 Self :: Item : Try < Residual : Residual < B > > ,
2171- B : FromIterator < <Self :: Item as Try >:: Output > ,
2171+ B : FromIterator < <Self :: Item as Branch >:: Output > ,
21722172 {
21732173 try_process ( ByRefSized ( self ) , |i| i. collect ( ) )
21742174 }
@@ -2781,12 +2781,12 @@ pub const trait Iterator {
27812781 {
27822782 let first = match self . next ( ) {
27832783 Some ( i) => i,
2784- None => return Try :: from_output ( None ) ,
2784+ None => return FromOutput :: from_output ( None ) ,
27852785 } ;
27862786
27872787 match self . try_fold ( first, f) . branch ( ) {
27882788 ControlFlow :: Break ( r) => FromResidual :: from_residual ( r) ,
2789- ControlFlow :: Continue ( i) => Try :: from_output ( Some ( i) ) ,
2789+ ControlFlow :: Continue ( i) => FromOutput :: from_output ( Some ( i) ) ,
27902790 }
27912791 }
27922792
@@ -3067,14 +3067,14 @@ pub const trait Iterator {
30673067 {
30683068 move |( ) , x| match f ( & x) . branch ( ) {
30693069 ControlFlow :: Continue ( false ) => ControlFlow :: Continue ( ( ) ) ,
3070- ControlFlow :: Continue ( true ) => ControlFlow :: Break ( Try :: from_output ( Some ( x) ) ) ,
3071- ControlFlow :: Break ( r) => ControlFlow :: Break ( FromResidual :: from_residual ( r) ) ,
3070+ ControlFlow :: Continue ( true ) => ControlFlow :: Break ( < _ > :: from_output ( Some ( x) ) ) ,
3071+ ControlFlow :: Break ( r) => ControlFlow :: Break ( < _ > :: from_residual ( r) ) ,
30723072 }
30733073 }
30743074
30753075 match self . try_fold ( ( ) , check ( f) ) {
30763076 ControlFlow :: Break ( x) => x,
3077- ControlFlow :: Continue ( ( ) ) => Try :: from_output ( None ) ,
3077+ ControlFlow :: Continue ( ( ) ) => < _ > :: from_output ( None ) ,
30783078 }
30793079 }
30803080
0 commit comments