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 /compiler/rustc_codegen_llvm/src/errors.rs | |
| 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 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
