stabilize ptr_cast_slice - #162927
stabilize ptr_cast_slice#162927malezjaa wants to merge 2 commits into
Conversation
|
|
|
seems fine. i think it's small enough that we can const-stabilise it too yeah. @rfcbot merge libs |
|
@nia-e 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. |
|
i'd like to change the documentation to point to |
Stabilization report
Closes #149103
This feature adds method calls on raw pointers that call into the respective
ptr::slice_from_raw_parts{_mut}method for the types*const T,*mut TandNonNull<T>to make using raw pointers more ergonomic in Rust by supporting postfix method chain syntax while creating slices.Implementation
cast_slicefor raw pointer types #149110stdto useptr.cast_slice: Migrate libraries from ptr::slice_from_raw_parts to .cast_slice #156109Public API
r? @nia-e
@rustbot modify labels: +T-libs