Commit 8509756
authored
Rollup merge of #146841 - bjoernager:const-slice-rotate, r=Amanieu
Stabilise `rotate_left` and `rotate_right` in `[_]` as `const fn` items.
Tracking issue: #143812
Closes: #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.`1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3629 | 3629 | | |
3630 | 3630 | | |
3631 | 3631 | | |
3632 | | - | |
| 3632 | + | |
3633 | 3633 | | |
3634 | 3634 | | |
3635 | 3635 | | |
| |||
3675 | 3675 | | |
3676 | 3676 | | |
3677 | 3677 | | |
3678 | | - | |
| 3678 | + | |
3679 | 3679 | | |
3680 | 3680 | | |
3681 | 3681 | | |
| |||
0 commit comments