@@ -762,46 +762,6 @@ pub struct Iter<'a, T: 'a> {
762762unsafe impl < ' a , T : Sync > Sync for Iter < ' a , T > { }
763763unsafe impl < ' a , T : Sync > Send for Iter < ' a , T > { }
764764
765- #[ unstable( feature = "core" ) ]
766- impl < ' a , T > ops:: Index < ops:: Range < usize > > for Iter < ' a , T > {
767- type Output = [ T ] ;
768-
769- #[ inline]
770- fn index ( & self , index : ops:: Range < usize > ) -> & [ T ] {
771- self . as_slice ( ) . index ( index)
772- }
773- }
774-
775- #[ unstable( feature = "core" ) ]
776- impl < ' a , T > ops:: Index < ops:: RangeTo < usize > > for Iter < ' a , T > {
777- type Output = [ T ] ;
778-
779- #[ inline]
780- fn index ( & self , index : ops:: RangeTo < usize > ) -> & [ T ] {
781- self . as_slice ( ) . index ( index)
782- }
783- }
784-
785- #[ unstable( feature = "core" ) ]
786- impl < ' a , T > ops:: Index < ops:: RangeFrom < usize > > for Iter < ' a , T > {
787- type Output = [ T ] ;
788-
789- #[ inline]
790- fn index ( & self , index : ops:: RangeFrom < usize > ) -> & [ T ] {
791- self . as_slice ( ) . index ( index)
792- }
793- }
794-
795- #[ unstable( feature = "core" ) ]
796- impl < ' a , T > ops:: Index < RangeFull > for Iter < ' a , T > {
797- type Output = [ T ] ;
798-
799- #[ inline]
800- fn index ( & self , _index : RangeFull ) -> & [ T ] {
801- self . as_slice ( )
802- }
803- }
804-
805765impl < ' a , T > Iter < ' a , T > {
806766 /// View the underlying data as a subslice of the original data.
807767 ///
@@ -873,76 +833,6 @@ pub struct IterMut<'a, T: 'a> {
873833unsafe impl < ' a , T : Sync > Sync for IterMut < ' a , T > { }
874834unsafe impl < ' a , T : Send > Send for IterMut < ' a , T > { }
875835
876- #[ unstable( feature = "core" ) ]
877- impl < ' a , T > ops:: Index < ops:: Range < usize > > for IterMut < ' a , T > {
878- type Output = [ T ] ;
879-
880- #[ inline]
881- fn index ( & self , index : ops:: Range < usize > ) -> & [ T ] {
882- self . index ( RangeFull ) . index ( index)
883- }
884- }
885- #[ unstable( feature = "core" ) ]
886- impl < ' a , T > ops:: Index < ops:: RangeTo < usize > > for IterMut < ' a , T > {
887- type Output = [ T ] ;
888-
889- #[ inline]
890- fn index ( & self , index : ops:: RangeTo < usize > ) -> & [ T ] {
891- self . index ( RangeFull ) . index ( index)
892- }
893- }
894- #[ unstable( feature = "core" ) ]
895- impl < ' a , T > ops:: Index < ops:: RangeFrom < usize > > for IterMut < ' a , T > {
896- type Output = [ T ] ;
897-
898- #[ inline]
899- fn index ( & self , index : ops:: RangeFrom < usize > ) -> & [ T ] {
900- self . index ( RangeFull ) . index ( index)
901- }
902- }
903- #[ unstable( feature = "core" ) ]
904- impl < ' a , T > ops:: Index < RangeFull > for IterMut < ' a , T > {
905- type Output = [ T ] ;
906-
907- #[ inline]
908- fn index ( & self , _index : RangeFull ) -> & [ T ] {
909- make_slice ! ( T => & [ T ] : self . ptr, self . end)
910- }
911- }
912-
913- #[ unstable( feature = "core" ) ]
914- impl < ' a , T > ops:: IndexMut < ops:: Range < usize > > for IterMut < ' a , T > {
915- #[ inline]
916- fn index_mut ( & mut self , index : ops:: Range < usize > ) -> & mut [ T ] {
917- self . index_mut ( RangeFull ) . index_mut ( index)
918- }
919- }
920- #[ unstable( feature = "core" ) ]
921- impl < ' a , T > ops:: IndexMut < ops:: RangeTo < usize > > for IterMut < ' a , T > {
922-
923- #[ inline]
924- fn index_mut ( & mut self , index : ops:: RangeTo < usize > ) -> & mut [ T ] {
925- self . index_mut ( RangeFull ) . index_mut ( index)
926- }
927- }
928- #[ unstable( feature = "core" ) ]
929- impl < ' a , T > ops:: IndexMut < ops:: RangeFrom < usize > > for IterMut < ' a , T > {
930-
931- #[ inline]
932- fn index_mut ( & mut self , index : ops:: RangeFrom < usize > ) -> & mut [ T ] {
933- self . index_mut ( RangeFull ) . index_mut ( index)
934- }
935- }
936- #[ unstable( feature = "core" ) ]
937- impl < ' a , T > ops:: IndexMut < RangeFull > for IterMut < ' a , T > {
938-
939- #[ inline]
940- fn index_mut ( & mut self , _index : RangeFull ) -> & mut [ T ] {
941- make_mut_slice ! ( T => & mut [ T ] : self . ptr, self . end)
942- }
943- }
944-
945-
946836impl < ' a , T > IterMut < ' a , T > {
947837 /// View the underlying data as a subslice of the original data.
948838 ///
0 commit comments