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]);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_reverse", issue = "none")]
#[rustc_const_unstable(feature = "const_reverse", issue = "100784")]
#[inline]
pub const fn reverse(&mut self) {
let half_len = self.len() / 2;