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 const_eval_select ( ( index, len) , slice_start_index_len_fail_ct, slice_start_index_len_fail_rt)
3736}
@@ -52,7 +51,6 @@ const fn slice_start_index_len_fail_ct(_: usize, _: usize) -> ! {
5251#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
5352#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
5453#[ track_caller]
55- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
5654const fn slice_end_index_len_fail ( index : usize , len : usize ) -> ! {
5755 const_eval_select ( ( index, len) , slice_end_index_len_fail_ct, slice_end_index_len_fail_rt)
5856}
@@ -73,7 +71,6 @@ const fn slice_end_index_len_fail_ct(_: usize, _: usize) -> ! {
7371#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
7472#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
7573#[ track_caller]
76- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
7774const fn slice_index_order_fail ( index : usize , end : usize ) -> ! {
7875 const_eval_select ( ( index, end) , slice_index_order_fail_ct, slice_index_order_fail_rt)
7976}
@@ -246,7 +243,6 @@ pub unsafe trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
246243
247244/// The methods `index` and `index_mut` panic if the index is out of bounds.
248245#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
249- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
250246unsafe impl < T > SliceIndex < [ T ] > for usize {
251247 type Output = T ;
252248
@@ -386,7 +382,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::IndexRange {
386382/// - the start of the range is greater than the end of the range or
387383/// - the end of the range is out of bounds.
388384#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
389- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
390385unsafe impl < T > SliceIndex < [ T ] > for ops:: Range < usize > {
391386 type Output = [ T ] ;
392387
@@ -522,7 +517,6 @@ unsafe impl<T> SliceIndex<[T]> for range::Range<usize> {
522517
523518/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
524519#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
525- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
526520unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeTo < usize > {
527521 type Output = [ T ] ;
528522
@@ -561,7 +555,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeTo<usize> {
561555
562556/// The methods `index` and `index_mut` panic if the start of the range is out of bounds.
563557#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
564- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
565558unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFrom < usize > {
566559 type Output = [ T ] ;
567560
@@ -644,7 +637,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeFrom<usize> {
644637}
645638
646639#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
647- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
648640unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFull {
649641 type Output = [ T ] ;
650642
@@ -684,7 +676,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeFull {
684676/// - the start of the range is greater than the end of the range or
685677/// - the end of the range is out of bounds.
686678#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
687- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
688679unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeInclusive < usize > {
689680 type Output = [ T ] ;
690681
@@ -766,7 +757,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeInclusive<usize> {
766757
767758/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
768759#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
769- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
770760unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeToInclusive < usize > {
771761 type Output = [ T ] ;
772762
0 commit comments