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 @@ -971,7 +971,7 @@ impl<T> [T] {
971
971
/// assert!(v == [3, 2, 1]);
972
972
/// ```
973
973
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
974
- #[ rustc_const_unstable ( feature = "const_slice_reverse" , issue = "135120 " ) ]
974
+ #[ rustc_const_stable ( feature = "const_slice_reverse" , since = "CURRENT_RUSTC_VERSION " ) ]
975
975
#[ inline]
976
976
pub const fn reverse ( & mut self ) {
977
977
let half_len = self . len ( ) / 2 ;
@@ -1004,6 +1004,7 @@ impl<T> [T] {
1004
1004
// this check tells LLVM that the indexing below is
1005
1005
// in-bounds. Then after inlining -- once the actual
1006
1006
// lengths of the slices are known -- it's removed.
1007
+ // FIXME(const_trait_impl) replace with let (a, b) = (&mut a[..n], &mut b[..n]);
1007
1008
let ( a, _) = a. split_at_mut ( n) ;
1008
1009
let ( b, _) = b. split_at_mut ( n) ;
1009
1010
You can’t perform that action at this time.
0 commit comments