about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-10-04 19:19:23 -0700
committerGitHub <noreply@github.com>2024-10-04 19:19:23 -0700
commit49c6d781171061c575184a0a4653fc5825a1940f (patch)
tree97c09ddf7afd974a7489c735180038f253d13600 /compiler/rustc_interface/src
parent9510c7366d4a0adb24117bb312a78314963cb8d4 (diff)
parent0dc250c4973d92cc92e534edeb05674218144d0a (diff)
downloadrust-49c6d781171061c575184a0a4653fc5825a1940f.tar.gz
rust-49c6d781171061c575184a0a4653fc5825a1940f.zip
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
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions