Repository navigation
Tracking Issue for NonNull<[T]>::slice_from_raw_parts #71941
Copy link
Copy link
Closed
Labels
A-raw-pointersArea: raw pointers, MaybeUninit, NonNullArea: raw pointers, MaybeUninit, NonNullA-sliceArea: `[T]`Area: `[T]`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-libs-radarLibs issues that are tracked on the team's radar.Libs issues that are tracked on the team's radar.Libs-SmallLibs issues that are considered "small" or self-containedLibs issues that are considered "small" or self-containedT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
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
lenandslice_from_raw_partstoNonNull<[T]>#71940 - FCP: Tracking Issue for
NonNull<[T]>::slice_from_raw_parts#71941 (comment) - Stabilization PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-raw-pointersArea: raw pointers, MaybeUninit, NonNullArea: raw pointers, MaybeUninit, NonNullA-sliceArea: `[T]`Area: `[T]`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-libs-radarLibs issues that are tracked on the team's radar.Libs issues that are tracked on the team's radar.Libs-SmallLibs issues that are considered "small" or self-containedLibs issues that are considered "small" or self-containedT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Activity
m-ou-se commentedon Mar 12, 2022
@rfcbot merge
rfcbot commentedon Mar 12, 2022
Team member @m-ou-se has proposed to merge this. The next step is review by the rest of the tagged team members:
No concerns currently listed.
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!
See this document for info about what commands tagged team members can give me.
bstrie commentedon Apr 7, 2022
I'm willing to file the stabilization report for this if the library team is on board for stabilization.
yaahc commentedon Apr 7, 2022
I'd certainly appreciate one!
rfcbot commentedon Apr 7, 2022
🔔 This is now entering its final comment period, as per the review above. 🔔
rfcbot commentedon Apr 17, 2022
The final comment period, with a disposition to merge, as per the review above, is now complete.
As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.
This will be merged soon.
Rollup merge of rust-lang#97506 - JohnTitor:stabilize-nonnull-slice-f…
Rollup merge of rust-lang#97506 - JohnTitor:stabilize-nonnull-slice-f…
Rollup merge of #97506 - JohnTitor:stabilize-nonnull-slice-from-raw-p…