rust/library/alloc
Jubilee 49c6d78117
Rollup merge of #130403 - eduardosm:stabilize-const_slice_from_raw_parts_mut, r=workingjubilee
Stabilize `const_slice_from_raw_parts_mut`

Stabilizes https://github.com/rust-lang/rust/issues/67456, since https://github.com/rust-lang/rust/issues/57349 has been stabilized.

Stabilized const API:
```rust
// core::ptr
pub const fn slice_from_raw_parts_mut<T>(data: *mut T, len: usize) -> *mut [T];

// core::slice
pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T];

// core::ptr::NonNull
pub const fn slice_from_raw_parts(data: NonNull<T>, len: usize) -> Self
```

Closes https://github.com/rust-lang/rust/issues/67456.

r? libs-api
2024-10-04 19:19:23 -07:00
..
benches Improve autovectorization of to_lowercase / to_uppercase functions 2024-09-23 11:31:29 +02:00
src Avoid emptiness check in PeekMut::pop 2024-10-03 22:15:52 +08:00
tests Stabilize const_slice_from_raw_parts_mut 2024-10-01 22:02:19 +02:00
Cargo.toml Update compiler_builtins to 0.1.130 2024-09-28 11:25:47 -04:00