Tracking Issue for box_as_ptr
Open
Nobody has claimed this yet.
A-box
C-tracking-issue
disposition-merge
finished-final-comment-period
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(box_as_ptr)]
This is a tracking issue for Box::as_ptr and Box::as_mut_ptr.
Public API
impl<T: ?Sized, A: Allocator> Box<T, A> {
pub fn as_mut_ptr(b: &mut Self) -> *mut T;
pub fn as_ptr(b: &Self) -> *const T;
}
Steps / History
- ACP: https://github.com/rust-lang/libs-team/issues/355
- Implementation: https://github.com/rust-lang/rust/pull/129091
- Final comment period (FCP)^1: https://github.com/rust-lang/rust/issues/129090#issuecomment-4692552170
- Stabilization PR: https://github.com/rust-lang/rust/pull/157876
Unresolved Questions
- None yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Box::as_ptr and Box::as_mut_ptr public API shown in the issue, then read the linked implementation PR and stabilization PR. Review the ACP and final comment period history for unresolved concerns; the issue is complete when the stabilization work is resolved and the feature is ready to leave its gated state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 20/100