File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -967,7 +967,7 @@ impl<T> [T] {
967
967
/// assert!(v == [3, 2, 1]);
968
968
/// ```
969
969
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
970
- #[ rustc_const_unstable ( feature = "const_slice_reverse" , issue = "135120 " ) ]
970
+ #[ rustc_const_stable ( feature = "const_slice_reverse" , since = "CURRENT_RUSTC_VERSION " ) ]
971
971
#[ inline]
972
972
pub const fn reverse ( & mut self ) {
973
973
let half_len = self . len ( ) / 2 ;
@@ -1000,6 +1000,7 @@ impl<T> [T] {
1000
1000
// this check tells LLVM that the indexing below is
1001
1001
// in-bounds. Then after inlining -- once the actual
1002
1002
// lengths of the slices are known -- it's removed.
1003
+ // FIXME(const_trait_impl) replace with let (a, b) = (&mut a[..n], &mut b[..n]);
1003
1004
let ( a, _) = a. split_at_mut ( n) ;
1004
1005
let ( b, _) = b. split_at_mut ( n) ;
1005
1006
You can’t perform that action at this time.
0 commit comments