Commit 0bcfd2d
committed
Auto merge of rust-lang#108273 - tspiteri:const_slice_split_at_not_mut, r=dtolnay
Stabilize const slice::split_at
This stabilizes the use of the following method in const context:
```rust
impl<T> [T] {
pub const fn split_at(&self, mid: usize) -> (&[T], &[T]);
}
```
cc tracking issue rust-lang#1011581 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1595 | 1595 | | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | | - | |
| 1598 | + | |
| 1599 | + | |
1599 | 1600 | | |
1600 | 1601 | | |
1601 | 1602 | | |
| |||
0 commit comments