-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for Box::into_raw_non_null #47336
Comments
It would be nice for this method to be an impl of the This method can be replaced with So while we can live without it, I’m still in favor of stabilizing this. It’s small and won’t be a maintenance burden. |
I'm in favor of |
@nvzqz |
I'm acutely aware it is. If we choose to stabilize both, then their names should be considered against each other regarding convention. |
Any movement on this? A cursory search of github for "new_unchecked into_raw" shows examples of the |
Any further movements? This could be okay in my projects. |
This method would be more ergonomic but isn't
without unsafe block is possible today as
|
Oooh that’s is a very interesting one, thanks @omni-viral. I think I’d be happy with:
How does this sound? @rfcbot fcp close |
Team member @SimonSapin has proposed to close 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. |
The coherence comment in #47336 (comment) is outdated as of rust 1.41. How about adding the From impl now? |
Good point, but I’m reconsidering my previous statement that this would be ideal. Unlike e.g. Maybe it’s fine, though? |
Fair enough. I do like |
Having it just be longer is definitely worse. |
I would personally disagree that the length is an issue here, and AFAICT, we can always add the shorter one later, right? We could also plausibly call this |
Not really, I was initially tempted to use |
Edit: that didn’t have the expected effect. rfcbot added it back. I’ve checked it instead. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
PR #57934 has added Unlike I’m inclined to deprecate anyway, even though the replacement @dwijnand, given the rest of this thread, what do you think? |
The previous formulation did (#56998):
I trust your call if you think it's too niche to be worth keeping. |
Remove use of soon-to-be-deprecated unstable feature rust-lang/rust#47336 (comment)
Remove use of soon-to-be-deprecated unstable feature rust-lang/rust#47336 (comment)
Remove use of soon-to-be-deprecated unstable feature rust-lang/rust#47336 (comment)
Remove use of soon-to-be-deprecated unstable feature rust-lang/rust#47336 (comment)
Remove use of soon-to-be-deprecated unstable feature rust-lang/rust#47336 (comment)
Remove use of soon-to-be-deprecated unstable feature rust-lang/rust#47336 (comment)
Remove use of soon-to-be-deprecated unstable feature rust-lang/rust#47336 (comment)
@rust-lang/libs Any thoughts on |
Have just come across this function, while reading the source for |
Would it make sense to add |
The final comment period, with a disposition to close, 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. |
…nieu Deprecate `{Box,Rc,Arc}::into_raw_non_null` Per ongoing FCP at rust-lang#47336 (comment) See also rust-lang#47336 (comment)
Since we've shipped the deprecation of these methods I'll go ahead and close this tracking issue now, but please re-open if we'd like to keep it active until the unstable methods have been removed entirely! |
I think we should keep tracking issues open as long as there are stable items pointing to them in the tree. But this case can be resolved quickly, I filed a removal PR: #74902 |
Remove deprecated unstable `{Box,Rc,Arc}::into_raw_non_null` functions FCP: rust-lang#47336 (comment)
This API was introduced in #46952:
It is intended as an eventually-stable replacement for
Box::into_unique
, since there is no plan to stabilizeUnique<T>
at the moment.See also discussion at #27730.
The text was updated successfully, but these errors were encountered: