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
// FIXME(const-hack): once integer formatting in panics is possible, we
37
36
// should use the same implementation at compiletime and runtime.
@@ -53,7 +52,6 @@ const fn slice_start_index_len_fail_ct(_: usize, _: usize) -> ! {
53
52
#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
54
53
#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
55
54
#[ track_caller]
56
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
57
55
const fn slice_end_index_len_fail ( index : usize , len : usize ) -> ! {
58
56
// FIXME(const-hack): once integer formatting in panics is possible, we
59
57
// should use the same implementation at compiletime and runtime.
@@ -75,7 +73,6 @@ const fn slice_end_index_len_fail_ct(_: usize, _: usize) -> ! {
75
73
#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) , cold) ]
76
74
#[ cfg_attr( feature = "panic_immediate_abort" , inline) ]
77
75
#[ track_caller]
78
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
79
76
const fn slice_index_order_fail ( index : usize , end : usize ) -> ! {
80
77
// FIXME(const-hack): once integer formatting in panics is possible, we
81
78
// should use the same implementation at compiletime and runtime.
@@ -249,7 +246,6 @@ pub unsafe trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
249
246
250
247
/// The methods `index` and `index_mut` panic if the index is out of bounds.
251
248
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
252
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
253
249
unsafe impl < T > SliceIndex < [ T ] > for usize {
254
250
type Output = T ;
255
251
@@ -389,7 +385,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::IndexRange {
389
385
/// - the start of the range is greater than the end of the range or
390
386
/// - the end of the range is out of bounds.
391
387
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
392
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
393
388
unsafe impl < T > SliceIndex < [ T ] > for ops:: Range < usize > {
394
389
type Output = [ T ] ;
395
390
@@ -525,7 +520,6 @@ unsafe impl<T> SliceIndex<[T]> for range::Range<usize> {
525
520
526
521
/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
527
522
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
528
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
529
523
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeTo < usize > {
530
524
type Output = [ T ] ;
531
525
@@ -564,7 +558,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeTo<usize> {
564
558
565
559
/// The methods `index` and `index_mut` panic if the start of the range is out of bounds.
566
560
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
567
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
568
561
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFrom < usize > {
569
562
type Output = [ T ] ;
570
563
@@ -647,7 +640,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeFrom<usize> {
647
640
}
648
641
649
642
#[ stable( feature = "slice_get_slice_impls" , since = "1.15.0" ) ]
650
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
651
643
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeFull {
652
644
type Output = [ T ] ;
653
645
@@ -687,7 +679,6 @@ unsafe impl<T> SliceIndex<[T]> for ops::RangeFull {
687
679
/// - the start of the range is greater than the end of the range or
688
680
/// - the end of the range is out of bounds.
689
681
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
690
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
691
682
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeInclusive < usize > {
692
683
type Output = [ T ] ;
693
684
@@ -769,7 +760,6 @@ unsafe impl<T> SliceIndex<[T]> for range::RangeInclusive<usize> {
769
760
770
761
/// The methods `index` and `index_mut` panic if the end of the range is out of bounds.
771
762
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
772
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
773
763
unsafe impl < T > SliceIndex < [ T ] > for ops:: RangeToInclusive < usize > {
774
764
type Output = [ T ] ;
775
765
0 commit comments