mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
8509756f46
Stabilise `rotate_left` and `rotate_right` in `[_]` as `const fn` items. Tracking issue: rust-lang/rust#143812 Closes: rust-lang/rust#143812 This PR stabilises the `const_slice_rotate` feature: ```rust impl<T> [T] { pub const fn rotate_left(&mut self, mid: usize); pub const fn rotate_right(&mut self, k: usize); } ``` No blockers or unresolved questions. FCP required. Courtesy of `@okaneco.`