@@ -502,8 +502,6 @@ impl<T> ops::Index<uint> for [T] {
502502
503503#[ stable( feature = "rust1" , since = "1.0.0" ) ]
504504impl < T > ops:: IndexMut < uint > for [ T ] {
505- type Output = T ;
506-
507505 fn index_mut ( & mut self , & index: & uint ) -> & mut T {
508506 assert ! ( index < self . len( ) ) ;
509507
@@ -553,7 +551,6 @@ impl<T> ops::Index<RangeFull> for [T] {
553551
554552#[ stable( feature = "rust1" , since = "1.0.0" ) ]
555553impl < T > ops:: IndexMut < ops:: Range < uint > > for [ T ] {
556- type Output = [ T ] ;
557554 #[ inline]
558555 fn index_mut ( & mut self , index : & ops:: Range < uint > ) -> & mut [ T ] {
559556 assert ! ( index. start <= index. end) ;
@@ -568,15 +565,13 @@ impl<T> ops::IndexMut<ops::Range<uint>> for [T] {
568565}
569566#[ stable( feature = "rust1" , since = "1.0.0" ) ]
570567impl < T > ops:: IndexMut < ops:: RangeTo < uint > > for [ T ] {
571- type Output = [ T ] ;
572568 #[ inline]
573569 fn index_mut ( & mut self , index : & ops:: RangeTo < uint > ) -> & mut [ T ] {
574570 self . index_mut ( & ops:: Range { start : 0 , end : index. end } )
575571 }
576572}
577573#[ stable( feature = "rust1" , since = "1.0.0" ) ]
578574impl < T > ops:: IndexMut < ops:: RangeFrom < uint > > for [ T ] {
579- type Output = [ T ] ;
580575 #[ inline]
581576 fn index_mut ( & mut self , index : & ops:: RangeFrom < uint > ) -> & mut [ T ] {
582577 let len = self . len ( ) ;
@@ -585,7 +580,6 @@ impl<T> ops::IndexMut<ops::RangeFrom<uint>> for [T] {
585580}
586581#[ stable( feature = "rust1" , since = "1.0.0" ) ]
587582impl < T > ops:: IndexMut < RangeFull > for [ T ] {
588- type Output = [ T ] ;
589583 #[ inline]
590584 fn index_mut ( & mut self , _index : & RangeFull ) -> & mut [ T ] {
591585 self
@@ -865,31 +859,27 @@ impl<'a, T> ops::Index<RangeFull> for IterMut<'a, T> {
865859
866860#[ unstable( feature = "core" ) ]
867861impl < ' a , T > ops:: IndexMut < ops:: Range < uint > > for IterMut < ' a , T > {
868- type Output = [ T ] ;
869862 #[ inline]
870863 fn index_mut ( & mut self , index : & ops:: Range < uint > ) -> & mut [ T ] {
871864 self . index_mut ( & RangeFull ) . index_mut ( index)
872865 }
873866}
874867#[ unstable( feature = "core" ) ]
875868impl < ' a , T > ops:: IndexMut < ops:: RangeTo < uint > > for IterMut < ' a , T > {
876- type Output = [ T ] ;
877869 #[ inline]
878870 fn index_mut ( & mut self , index : & ops:: RangeTo < uint > ) -> & mut [ T ] {
879871 self . index_mut ( & RangeFull ) . index_mut ( index)
880872 }
881873}
882874#[ unstable( feature = "core" ) ]
883875impl < ' a , T > ops:: IndexMut < ops:: RangeFrom < uint > > for IterMut < ' a , T > {
884- type Output = [ T ] ;
885876 #[ inline]
886877 fn index_mut ( & mut self , index : & ops:: RangeFrom < uint > ) -> & mut [ T ] {
887878 self . index_mut ( & RangeFull ) . index_mut ( index)
888879 }
889880}
890881#[ unstable( feature = "core" ) ]
891882impl < ' a , T > ops:: IndexMut < RangeFull > for IterMut < ' a , T > {
892- type Output = [ T ] ;
893883 #[ inline]
894884 fn index_mut ( & mut self , _index : & RangeFull ) -> & mut [ T ] {
895885 make_slice ! ( T => & mut [ T ] : self . ptr, self . end)
0 commit comments