@@ -148,8 +148,7 @@ impl Error for TryFromSliceError {
148
148
}
149
149
150
150
#[ stable( feature = "try_from_slice_error" , since = "1.36.0" ) ]
151
- #[ rustc_const_unstable( feature = "const_convert" , issue = "88674" ) ]
152
- impl const From < Infallible > for TryFromSliceError {
151
+ impl From < Infallible > for TryFromSliceError {
153
152
fn from ( x : Infallible ) -> TryFromSliceError {
154
153
match x { }
155
154
}
@@ -172,16 +171,14 @@ impl<T, const N: usize> AsMut<[T]> for [T; N] {
172
171
}
173
172
174
173
#[ stable( feature = "array_borrow" , since = "1.4.0" ) ]
175
- #[ rustc_const_unstable( feature = "const_borrow" , issue = "91522" ) ]
176
- impl < T , const N : usize > const Borrow < [ T ] > for [ T ; N ] {
174
+ impl < T , const N : usize > Borrow < [ T ] > for [ T ; N ] {
177
175
fn borrow ( & self ) -> & [ T ] {
178
176
self
179
177
}
180
178
}
181
179
182
180
#[ stable( feature = "array_borrow" , since = "1.4.0" ) ]
183
- #[ rustc_const_unstable( feature = "const_borrow" , issue = "91522" ) ]
184
- impl < T , const N : usize > const BorrowMut < [ T ] > for [ T ; N ] {
181
+ impl < T , const N : usize > BorrowMut < [ T ] > for [ T ; N ] {
185
182
fn borrow_mut ( & mut self ) -> & mut [ T ] {
186
183
self
187
184
}
@@ -336,10 +333,9 @@ impl<'a, T, const N: usize> IntoIterator for &'a mut [T; N] {
336
333
}
337
334
338
335
#[ stable( feature = "index_trait_on_arrays" , since = "1.50.0" ) ]
339
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
340
- impl < T , I , const N : usize > const Index < I > for [ T ; N ]
336
+ impl < T , I , const N : usize > Index < I > for [ T ; N ]
341
337
where
342
- [ T ] : ~ const Index < I > ,
338
+ [ T ] : Index < I > ,
343
339
{
344
340
type Output = <[ T ] as Index < I > >:: Output ;
345
341
@@ -350,10 +346,9 @@ where
350
346
}
351
347
352
348
#[ stable( feature = "index_trait_on_arrays" , since = "1.50.0" ) ]
353
- #[ rustc_const_unstable( feature = "const_slice_index" , issue = "none" ) ]
354
- impl < T , I , const N : usize > const IndexMut < I > for [ T ; N ]
349
+ impl < T , I , const N : usize > IndexMut < I > for [ T ; N ]
355
350
where
356
- [ T ] : ~ const IndexMut < I > ,
351
+ [ T ] : IndexMut < I > ,
357
352
{
358
353
#[ inline]
359
354
fn index_mut ( & mut self , index : I ) -> & mut Self :: Output {
@@ -435,8 +430,7 @@ impl<T: Copy> SpecArrayClone for T {
435
430
macro_rules! array_impl_default {
436
431
{ $n: expr, $t: ident $( $ts: ident) * } => {
437
432
#[ stable( since = "1.4.0" , feature = "array_default" ) ]
438
- #[ rustc_const_unstable( feature = "const_default_impls" , issue = "87864" ) ]
439
- impl <T > const Default for [ T ; $n] where T : ~const Default {
433
+ impl <T > Default for [ T ; $n] where T : Default {
440
434
fn default ( ) -> [ T ; $n] {
441
435
[ $t:: default ( ) , $( $ts:: default ( ) ) ,* ]
442
436
}
@@ -445,8 +439,7 @@ macro_rules! array_impl_default {
445
439
} ;
446
440
{ $n: expr, } => {
447
441
#[ stable( since = "1.4.0" , feature = "array_default" ) ]
448
- #[ rustc_const_unstable( feature = "const_default_impls" , issue = "87864" ) ]
449
- impl <T > const Default for [ T ; $n] {
442
+ impl <T > Default for [ T ; $n] {
450
443
fn default ( ) -> [ T ; $n] { [ ] }
451
444
}
452
445
} ;
0 commit comments