-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove obsolete documentation about drop-flags #39304
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
src/doc/nomicon/drop-flags.md
Outdated
Rust makes it easy to take control here! Uninitialized values are there, and | ||
you can work with them in Safe Rust, but you're never in danger. | ||
As of Rust 1.13, the drop flags are tracked on the stack and no longer stashed in | ||
types that implement drop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This "no longer" bit doesn't make much sense since you removed the part that it references. Maybe keep a condensed version so it's more like "This is how it was in Rust 1.0, then in 1.13 it changed to this."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to lead with the current behaviour.
How about:
As of Rust 1.13, the drop flags are now tracked on the stack instead of being stashed in types that implement drop as they were in prior versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't mention versions in docs; always speak to the present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(so just lose the first clause)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we go again.
src/doc/nomicon/drop-flags.md
Outdated
Rust makes it easy to take control here! Uninitialized values are there, and | ||
you can work with them in Safe Rust, but you're never in danger. | ||
As of Rust 1.13, the drop flags are tracked on the stack and no longer stashed in | ||
types that implement drop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(so just lose the first clause)
ping @jrmuizel ! Any interest in keeping this going? |
☔ The latest upstream changes (presumably #39633) made this pull request unmergeable. Please resolve the merge conflicts. |
@jrmuizel sorry, I did not see that you pushed a commit. Mind rebasing this one last time? It should be good to go then |
Done. |
@bors: r+ rollup |
📌 Commit 4ba6e1b has been approved by |
⌛ Testing commit 4ba6e1b with merge 08eea7a... |
@bors: retry |
Remove obsolete documentation about drop-flags
☀️ Test successful - status-appveyor, status-travis |
No description provided.