Closed
Description
This is a tracking issue for the NonNull<[T]>::slice_from_raw_parts
method proposed in PR #71940.
The feature gates for the issue are #![feature(nonnull_slice_from_raw_parts)]
, and #![feature(const_nonnull_slice_from_raw_parts)]
for using as a const fn
.
API
impl<T> NonNull<[T]> {
pub const fn slice_from_raw_parts(data: NonNull<T>, len: usize) -> Self;
}
Docs: https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.slice_from_raw_parts
Steps
- Implementation: Add
len
andslice_from_raw_parts
toNonNull<[T]>
#71940 - FCP: Tracking Issue for
NonNull<[T]>::slice_from_raw_parts
#71941 (comment) - Stabilization PR
Metadata
Metadata
Assignees
Labels
Area: raw pointers, MaybeUninit, NonNullArea: `[T]`Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are considered "small" or self-containedLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.