-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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] const fn std::mem::needs_drop #51929
Comments
blocked on #51570 |
@oli-obk is this still blocked? If not I would like to help out with it. 👍 |
Make core::mem::needs_drop a const fn This fixes #51929.
It might be nice to keeps this issue open until |
I know it's only been a few months since this was implemented, but I'm curious what the road to stabilization is. I've been using this in my objrs crate and it's been working great. At what point should I send a stabilization PR? |
I've nominated this for libs team to take a look at and decide whether or not to propose FCP for stabilization. |
I've added T-lang since they'd better know if this bit of const-fn-ness is ready to stabilize. @rfcbot fcp merge |
Team member @sfackler 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. |
Seems unobjectionable (assuming the implementation is up to snuff...? cc @oli-obk). |
Yea, the impl has baked in miri since long before it was in const eval. I also rechecked it and I see no reason not to stabilize. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
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. The RFC will be merged soon. |
The issue title says it all really. std::mem::needs_drop is a function that doesn't change from call to call once monomorphized, so it should be a const function.
EDIT:
This has been implemented and it is waiting for stabilization now.
The text was updated successfully, but these errors were encountered: