Commit 2c380a4
authored
Rollup merge of #134995 - DaniPopes:stable-const_slice_flatten, r=Amanieu
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: #95629
Requires separate FCP, as per #95629 (comment).
Closes #95629.
`````@rustbot````` modify labels: +T-libs-api
Happy new year!1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4796 | 4796 | | |
4797 | 4797 | | |
4798 | 4798 | | |
4799 | | - | |
| 4799 | + | |
4800 | 4800 | | |
4801 | 4801 | | |
4802 | 4802 | | |
| |||
4833 | 4833 | | |
4834 | 4834 | | |
4835 | 4835 | | |
4836 | | - | |
| 4836 | + | |
4837 | 4837 | | |
4838 | 4838 | | |
4839 | 4839 | | |
| |||
0 commit comments