diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-28 23:29:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-28 23:29:15 +0000 |
| commit | 17495e0030250202c28be85a35b366e37a32df3b (patch) | |
| tree | 6a30e4f1087a717c8a07cb9a3336e75cdf685e76 /tests/codegen | |
| parent | d4845e1b0b745b4183096c363e3f4e71a45c14c9 (diff) | |
| parent | c49ddc0de3a7cc349774a8177d2baaf3902038da (diff) | |
| download | rust-17495e0030250202c28be85a35b366e37a32df3b.tar.gz rust-17495e0030250202c28be85a35b366e37a32df3b.zip | |
Rollup merge of #139656 - scottmcm:stabilize-slice-as-chunks, r=dtolnay
Stabilize `slice_as_chunks` library feature
~~Draft as this needs #139163 to land first.~~
FCP: https://github.com/rust-lang/rust/issues/74985#issuecomment-2769963395
Methods being stabilized are:
```rust
impl [T] {
const fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T]);
const fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]]);
const unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]];
const fn as_chunks_mut<const N: usize>(&mut self) -> (&mut [[T; N]], &mut [T]);
const fn as_rchunks_mut<const N: usize>(&mut self) -> (&mut [T], &mut [[T; N]]);
const unsafe fn as_chunks_unchecked_mut<const N: usize>(&mut self) -> &mut [[T; N]];
}
```
~~(FCP's not done quite yet, but will in another day if I'm counting right.)~~ FCP Complete: https://github.com/rust-lang/rust/issues/74985#issuecomment-2797951535
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/slice-as_chunks.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/codegen/slice-as_chunks.rs b/tests/codegen/slice-as_chunks.rs index a90ee7c628e..337eb8981f6 100644 --- a/tests/codegen/slice-as_chunks.rs +++ b/tests/codegen/slice-as_chunks.rs @@ -2,7 +2,6 @@ //@ only-64bit (because the LLVM type of i64 for usize shows up) #![crate_type = "lib"] -#![feature(slice_as_chunks)] // CHECK-LABEL: @chunks4 #[no_mangle] |
