stabilize Box::take - #160436
Conversation
|
r? @Darksonn rustbot has assigned @Darksonn. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@rustbot label +I-libs-api-nominated |
|
@rfcbot merge libs-api |
|
@Amanieu 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. |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
I wonder if there might be a better name - currently in the standard library, |
|
I like to think of the use of
The other suggestion in the tracking issue was |
|
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. |
|
This was discovered slightly too late for the FCP, but it turns out that stabilizing this will significantly close down options for future features. Although I'm personally in favor of sending future Rust development in a direction that would not conflict with this stabilization, not everyone agrees, so I'm going to flag up the conflict in case it makes people reconsider. There's a three-way conflict (you can have any two of these, but not all three):
The conflict occurs because if you have all three, you can start with an My own opinion on this is that the property that should be dropped is 3, and that doing this should be allowed (and that converting |
Indeed, I believe we should lose ability 2 from the list, because That's a cross post from rust-lang/rfcs#4000 (comment). |
While this would be fine regarding this API, it would put |
I agree. A |
|
A From my point of view, |
If the allocator does the work of ensuring that the field behaves like an allocation, then yes, it is. After a quick read of the mentioned RFC, I think that under my preferred interpretation of the safety contract for |
|
I agree that 2 is to be dropped. It's misuse of box, and if we want |
You should not be able to get an This is the same reason |
Tracking issue: #147212
There hasn't been any activity on the tracking issue for a while, and this is a pretty small feature, so opening this to hopefully get a FCP started.