Document that ManuallyDrop's Box interaction has been fixed#155750
Document that ManuallyDrop's Box interaction has been fixed#155750WaffleLapkin wants to merge 2 commits intorust-lang:mainfrom
ManuallyDrop's Box interaction has been fixed#155750Conversation
|
r? @jhpratt rustbot has assigned @jhpratt. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors r+ rollup |
…r=jhpratt Document that `ManuallyDrop`'s `Box` interaction has been fixed Both rust-lang#150447 and rust-lang#150446 has been merged in `1.96.0`, fixing the unfortunate `ManuallyDrop<Box<_>>` behavior. cc @RalfJung
|
@bors r- Uh no we can't yet make this a stable guarantee I don't think. |
|
This pull request was unapproved. This PR was contained in a rollup (#155807), which was unapproved. |
| /// | ||
| /// Note that this could also have happen with a generic type where the user of | ||
| /// the library providing it could substitute the generic for a `Box<_>` and | ||
| /// then move the library type: |
There was a problem hiding this comment.
We don't usually document the behavior of past versions of Rust in the current docs, do we? I guess the point is that people should be aware that there's a sort of MSRV effect by relying on this behavior?
And you even added new examples, making the docs more extensive than they were when this affected latest stable Rust.
There was a problem hiding this comment.
The idea is indeed that there is an MSRV effect to this behavior (or luck of the footgun...)
I did not add examples, only move existing ones around (GitHub diff is being very unhelpful here)
There was a problem hiding this comment.
I think people usually just go to doc.rust-lang.org/stable for docs, rather than checking for docs of their MSRV, so keeping the warning seems like a good idea to be.
|
If we make this a stable guarantee then even if |
|
This definitely requires signoff from lang, but if they are willing to preserve |
|
Thanks @WaffleLapkin. Sounds right to me. This is a kind of partial stabilization of RFC 3336. @rfcbot fcp merge libs-api |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@rfcbot fcp merge lang,libs-api |
|
Team member @traviscross 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! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
Exactly. It stabilizes the |
|
Hypothetically, someone might want @rfcbot reviewed |
it is not as important anymore (see next comment)
8520b8e to
10eb877
Compare
View all comments
Both #150447 and #150446 has been merged in
1.96.0, fixing the unfortunateManuallyDrop<Box<_>>behavior.cc @RalfJung