1
Fork 0

Tracking issue for const_reverse

This commit is contained in:
ltdk 2022-08-19 20:38:32 -04:00
parent 5e1730fd17
commit ae2b1dbc89

View file

@ -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;