Tracking issue for const_reverse
This commit is contained in:
@@ -674,7 +674,7 @@ impl<T> [T] {
|
|||||||
/// assert!(v == [3, 2, 1]);
|
/// assert!(v == [3, 2, 1]);
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_unstable(feature = "const_reverse", issue = "none")]
|
#[rustc_const_unstable(feature = "const_reverse", issue = "100784")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn reverse(&mut self) {
|
pub const fn reverse(&mut self) {
|
||||||
let half_len = self.len() / 2;
|
let half_len = self.len() / 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user