@@ -2513,6 +2513,12 @@ macro_rules! iterator {
25132513 accum
25142514 }
25152515 }
2516+
2517+ #[ stable( feature = "fused" , since = "1.26.0" ) ]
2518+ impl <' a, T > FusedIterator for $name<' a, T > { }
2519+
2520+ #[ unstable( feature = "trusted_len" , issue = "37572" ) ]
2521+ unsafe impl <' a, T > TrustedLen for $name<' a, T > { }
25162522 }
25172523}
25182524
@@ -2639,12 +2645,6 @@ impl<'a, T> ExactSizeIterator for Iter<'a, T> {
26392645 }
26402646}
26412647
2642- #[ stable( feature = "fused" , since = "1.26.0" ) ]
2643- impl < ' a , T > FusedIterator for Iter < ' a , T > { }
2644-
2645- #[ unstable( feature = "trusted_len" , issue = "37572" ) ]
2646- unsafe impl < ' a , T > TrustedLen for Iter < ' a , T > { }
2647-
26482648#[ stable( feature = "rust1" , since = "1.0.0" ) ]
26492649impl < ' a , T > Clone for Iter < ' a , T > {
26502650 fn clone ( & self ) -> Iter < ' a , T > { Iter { ptr : self . ptr , end : self . end , _marker : self . _marker } }
@@ -2767,13 +2767,6 @@ impl<'a, T> ExactSizeIterator for IterMut<'a, T> {
27672767 }
27682768}
27692769
2770- #[ stable( feature = "fused" , since = "1.26.0" ) ]
2771- impl < ' a , T > FusedIterator for IterMut < ' a , T > { }
2772-
2773- #[ unstable( feature = "trusted_len" , issue = "37572" ) ]
2774- unsafe impl < ' a , T > TrustedLen for IterMut < ' a , T > { }
2775-
2776-
27772770// Return the number of elements of `T` from `start` to `end`.
27782771// Return the arithmetic difference if `T` is zero size.
27792772#[ inline( always) ]
0 commit comments