-
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 for ManuallyDrop #40673
Comments
I left a comment rust-lang/rfcs#1860 (comment) which slipped by FCP. The tl;dr is: this is fine for now in my book, but we should consider |
I’d like this to be stabilized. What’s the next step? The only alternative that I know of is https://crates.io/crates/nodrop, which on stable Rust requires a combination of hacks that look fragile to me. |
I am personally using this in a project, so I'm in favor of stabilizing a solution for specifying drop order, but I also don't want @Ericson2314's comment ignored before stabilizing this. |
I don't believe @rfcbot fcp merge |
Team member @sfackler has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, 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 filed rust-lang/api-guidelines#93 to follow up with a justification of why we prefer @rfcbot reviewed |
Fair enough, this can always be deprecated. |
@brson I think this is waiting on you :) |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period is now complete. |
Hey nice I was about to propose stabilizing this. 🎉 |
Sorry if I have missed this somewhere — do we have a decision for how layout optimization handles things like |
In the case of Or, in other words, |
Stabilizes * `core::mem::ManuallyDrop` * `std::mem::ManuallyDrop` * `ManuallyDrop::new` * `ManuallyDrop::into_inner` * `ManuallyDrop::drop` * `Deref for ManuallyDrop` * `DerefMut for ManuallyDrop` Closes rust-lang#40673
This is probably neither the right time nor place for this, but any plans to |
You can submit a PR to derive(Copy) and it will likely be accepted. |
When testing it seems like this is the test I'm referring to. |
@kjetilkjeka Here is the PR. Rust 1.21 has already been released and it doesn't have it. According to this if it is in beta now it should be in 1.22 (maybe a few weeks?), but I don't know much about it. |
Tracking issue for rust-lang/rfcs#1860
I believe initially implemented at #40559
The text was updated successfully, but these errors were encountered: