@@ -2513,6 +2513,12 @@ macro_rules! iterator {
2513
2513
accum
2514
2514
}
2515
2515
}
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 > { }
2516
2522
}
2517
2523
}
2518
2524
@@ -2639,12 +2645,6 @@ impl<'a, T> ExactSizeIterator for Iter<'a, T> {
2639
2645
}
2640
2646
}
2641
2647
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
-
2648
2648
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2649
2649
impl < ' a , T > Clone for Iter < ' a , T > {
2650
2650
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> {
2767
2767
}
2768
2768
}
2769
2769
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
-
2777
2770
// Return the number of elements of `T` from `start` to `end`.
2778
2771
// Return the arithmetic difference if `T` is zero size.
2779
2772
#[ inline( always) ]
0 commit comments