3131#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
3232#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
3333#[ track_caller]
34- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
3534const fn slice_start_index_len_fail ( index : usize , len : usize ) -> ! {
3635 // FIXME(const-hack): once integer formatting in panics is possible, we
3736 // should use the same implementation at compiletime and runtime.
@@ -53,7 +52,6 @@ const fn slice_start_index_len_fail_ct(_: usize, _: usize) -> ! {
5352#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
5453#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
5554#[ track_caller]
56- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
5755const fn slice_end_index_len_fail ( index : usize , len : usize ) -> ! {
5856 // FIXME(const-hack): once integer formatting in panics is possible, we
5957 // should use the same implementation at compiletime and runtime.
@@ -75,7 +73,6 @@ const fn slice_end_index_len_fail_ct(_: usize, _: usize) -> ! {
7573#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
7674#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
7775#[ track_caller]
78- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
7976const fn slice_index_order_fail ( index : usize , end : usize ) -> ! {
8077 // FIXME(const-hack): once integer formatting in panics is possible, we
8178 // should use the same implementation at compiletime and runtime.
@@ -249,7 +246,6 @@ pub unsafe trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
249246
250247/// The methods `index` and `index_mut` panic if the index is out of bounds.
251248#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
252- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
253249unsafe impl < T > SliceIndex < [ T ] > for usize {
254250 type Output = T ;
255251
@@ -389,7 +385,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::IndexRange {
389385/// - the start of the range is greater than the end of the range or
390386/// - the end of the range is out of bounds.
391387#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
392- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
393388unsafe impl < T > SliceIndex < [ T ] > for ops:: Range < usize > {
394389 type Output = [ T ] ;
395390
@@ -525,7 +520,6 @@ unsafe impl<T> SliceIndex<[T]> for range::Range<usize> {
525520
526521/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
527522#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
528- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
529523unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeTo < usize > {
530524 type Output = [ T ] ;
531525
@@ -564,7 +558,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeTo<usize> {
564558
565559/// The methods `index` and `index_mut` panic if the start of the range is out of bounds.
566560#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
567- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
568561unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFrom < usize > {
569562 type Output = [ T ] ;
570563
@@ -647,7 +640,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeFrom<usize> {
647640}
648641
649642#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
650- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
651643unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFull {
652644 type Output = [ T ] ;
653645
@@ -687,7 +679,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeFull {
687679/// - the start of the range is greater than the end of the range or
688680/// - the end of the range is out of bounds.
689681#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
690- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
691682unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeInclusive < usize > {
692683 type Output = [ T ] ;
693684
@@ -769,7 +760,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeInclusive<usize> {
769760
770761/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
771762#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
772- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
773763unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeToInclusive < usize > {
774764 type Output = [ T ] ;
775765
0 commit comments