@@ -711,7 +711,6 @@ pub trait IndexMut<Index, Result> {
711
711
* }
712
712
* ```
713
713
*/
714
- #[ cfg( not( stage0) ) ]
715
714
#[ lang="slice" ]
716
715
pub trait Slice < Idx , Sized ? Result > for Sized ? {
717
716
/// The method for the slicing operation foo[]
@@ -723,21 +722,6 @@ pub trait Slice<Idx, Sized? Result> for Sized? {
723
722
/// The method for the slicing operation foo[from..to]
724
723
fn slice_or_fail < ' a > ( & ' a self , from : & Idx , to : & Idx ) -> & ' a Result ;
725
724
}
726
- #[ cfg( stage0) ]
727
- /**
728
- *
729
- */
730
- #[ lang="slice" ]
731
- pub trait Slice < Idx , Sized ? Result > for Sized ? {
732
- /// The method for the slicing operation foo[]
733
- fn as_slice_ < ' a > ( & ' a self ) -> & ' a Result ;
734
- /// The method for the slicing operation foo[from..]
735
- fn slice_from_ < ' a > ( & ' a self , from : & Idx ) -> & ' a Result ;
736
- /// The method for the slicing operation foo[..to]
737
- fn slice_to_ < ' a > ( & ' a self , to : & Idx ) -> & ' a Result ;
738
- /// The method for the slicing operation foo[from..to]
739
- fn slice_ < ' a > ( & ' a self , from : & Idx , to : & Idx ) -> & ' a Result ;
740
- }
741
725
742
726
/**
743
727
*
@@ -776,7 +760,6 @@ pub trait Slice<Idx, Sized? Result> for Sized? {
776
760
* }
777
761
* ```
778
762
*/
779
- #[ cfg( not( stage0) ) ]
780
763
#[ lang="slice_mut" ]
781
764
pub trait SliceMut < Idx , Sized ? Result > for Sized ? {
782
765
/// The method for the slicing operation foo[]
@@ -788,21 +771,7 @@ pub trait SliceMut<Idx, Sized? Result> for Sized? {
788
771
/// The method for the slicing operation foo[from..to]
789
772
fn slice_or_fail_mut < ' a > ( & ' a mut self , from : & Idx , to : & Idx ) -> & ' a mut Result ;
790
773
}
791
- #[ cfg( stage0) ]
792
- /**
793
- *
794
- */
795
- #[ lang="slice_mut" ]
796
- pub trait SliceMut < Idx , Sized ? Result > for Sized ? {
797
- /// The method for the slicing operation foo[mut]
798
- fn as_mut_slice_ < ' a > ( & ' a mut self ) -> & ' a mut Result ;
799
- /// The method for the slicing operation foo[mut from..]
800
- fn slice_from_mut_ < ' a > ( & ' a mut self , from : & Idx ) -> & ' a mut Result ;
801
- /// The method for the slicing operation foo[mut ..to]
802
- fn slice_to_mut_ < ' a > ( & ' a mut self , to : & Idx ) -> & ' a mut Result ;
803
- /// The method for the slicing operation foo[mut from..to]
804
- fn slice_mut_ < ' a > ( & ' a mut self , from : & Idx , to : & Idx ) -> & ' a mut Result ;
805
- }
774
+
806
775
/**
807
776
*
808
777
* The `Deref` trait is used to specify the functionality of dereferencing
0 commit comments