diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-04-13 00:18:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 00:18:46 -0400 |
| commit | 0518ecc70005d34686bb247229280501bd460e2b (patch) | |
| tree | a04a8fc3428a2393fa5ff14da8d2c83fceb5a6a8 /library/alloc/src | |
| parent | 8533144f971a7dfe88021aeb29695d8105e81530 (diff) | |
| parent | fb9e1f73b36ee867b6ff14ab977afa5a57c8c025 (diff) | |
| download | rust-0518ecc70005d34686bb247229280501bd460e2b.tar.gz rust-0518ecc70005d34686bb247229280501bd460e2b.zip | |
Rollup merge of #123868 - eduardosm:stabilize-slice_ptr_len, r=jhpratt
Stabilize (const_)slice_ptr_len and (const_)slice_ptr_is_empty_nonnull
Stabilized API:
```rust
impl<T> *mut [T] {
pub const fn len(self) -> usize;
pub const fn is_empty(self) -> bool;
}
impl<T> *const [T] {
pub const fn len(self) -> usize;
pub const fn is_empty(self) -> bool;
}
impl<T> NonNull<[T]> {
pub const fn is_empty(self) -> bool;
}
```
FCP completed in tracking issue: https://github.com/rust-lang/rust/issues/71146
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs index f638c5cf8c7..dec04d7e421 100644 --- a/library/alloc/src/lib.rs +++ b/library/alloc/src/lib.rs @@ -151,7 +151,6 @@ #![feature(slice_from_ptr_range)] #![feature(slice_index_methods)] #![feature(slice_ptr_get)] -#![feature(slice_ptr_len)] #![feature(slice_range)] #![feature(std_internals)] #![feature(str_internals)] |
