31
31
#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
32
32
#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
33
33
#[ track_caller]
34
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
35
34
const fn slice_start_index_len_fail ( index : usize , len : usize ) -> ! {
36
35
const_eval_select ( ( index, len) , slice_start_index_len_fail_ct, slice_start_index_len_fail_rt)
37
36
}
@@ -52,7 +51,6 @@ const fn slice_start_index_len_fail_ct(_: usize, _: usize) -> ! {
52
51
#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
53
52
#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
54
53
#[ track_caller]
55
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
56
54
const fn slice_end_index_len_fail ( index : usize , len : usize ) -> ! {
57
55
const_eval_select ( ( index, len) , slice_end_index_len_fail_ct, slice_end_index_len_fail_rt)
58
56
}
@@ -73,7 +71,6 @@ const fn slice_end_index_len_fail_ct(_: usize, _: usize) -> ! {
73
71
#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
74
72
#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
75
73
#[ track_caller]
76
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
77
74
const fn slice_index_order_fail ( index : usize , end : usize ) -> ! {
78
75
const_eval_select ( ( index, end) , slice_index_order_fail_ct, slice_index_order_fail_rt)
79
76
}
@@ -246,7 +243,6 @@ pub unsafe trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
246
243
247
244
/// The methods `index` and `index_mut` panic if the index is out of bounds.
248
245
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
249
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
250
246
unsafe impl < T > SliceIndex < [ T ] > for usize {
251
247
type Output = T ;
252
248
@@ -386,7 +382,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::IndexRange {
386
382
/// - the start of the range is greater than the end of the range or
387
383
/// - the end of the range is out of bounds.
388
384
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
389
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
390
385
unsafe impl < T > SliceIndex < [ T ] > for ops:: Range < usize > {
391
386
type Output = [ T ] ;
392
387
@@ -522,7 +517,6 @@ unsafe impl<T> SliceIndex<[T]> for range::Range<usize> {
522
517
523
518
/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
524
519
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
525
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
526
520
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeTo < usize > {
527
521
type Output = [ T ] ;
528
522
@@ -561,7 +555,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeTo<usize> {
561
555
562
556
/// The methods `index` and `index_mut` panic if the start of the range is out of bounds.
563
557
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
564
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
565
558
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFrom < usize > {
566
559
type Output = [ T ] ;
567
560
@@ -644,7 +637,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeFrom<usize> {
644
637
}
645
638
646
639
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
647
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
648
640
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFull {
649
641
type Output = [ T ] ;
650
642
@@ -684,7 +676,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeFull {
684
676
/// - the start of the range is greater than the end of the range or
685
677
/// - the end of the range is out of bounds.
686
678
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
687
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
688
679
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeInclusive < usize > {
689
680
type Output = [ T ] ;
690
681
@@ -766,7 +757,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeInclusive<usize> {
766
757
767
758
/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
768
759
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
769
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
770
760
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeToInclusive < usize > {
771
761
type Output = [ T ] ;
772
762
0 commit comments