Commit 7de250f
committed
Stabilize const_slice_flatten
Const-stabilizes `slice::as_flattened{,_mut}`:
```rust
// core::slice
impl<T, const N: usize> [[T; N]] {
pub const fn as_flattened(&self) -> &[T];
pub const fn as_flattened_mut(&mut self) -> &mut [T];
}
```
Tracking issue: rust-lang#95629
Requires separate libs-api FCP, as per rust-lang#95629 (comment).
Closes rust-lang#95629.1 parent eeeff9a commit 7de250f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4784 | 4784 | | |
4785 | 4785 | | |
4786 | 4786 | | |
4787 | | - | |
| 4787 | + | |
4788 | 4788 | | |
4789 | 4789 | | |
4790 | 4790 | | |
| |||
4821 | 4821 | | |
4822 | 4822 | | |
4823 | 4823 | | |
4824 | | - | |
| 4824 | + | |
4825 | 4825 | | |
4826 | 4826 | | |
4827 | 4827 | | |
| |||
0 commit comments