-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
update ManuallyDrop RFC to reflect how the implementation now looks #2510
Conversation
text/1860-manually-drop.md
Outdated
@@ -96,6 +97,9 @@ impl<T> DerefMut for ManuallyDrop<T> { | |||
// Other common impls such as `Debug for T: Debug`. |
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 is unnecessary now.
text/1860-manually-drop.md
Outdated
@@ -96,6 +97,9 @@ impl<T> DerefMut for ManuallyDrop<T> { | |||
// Other common impls such as `Debug for T: Debug`. | |||
``` | |||
|
|||
The lang item will be treated specially by the compiler to not emit any drop | |||
glue for this type. | |||
|
|||
Let us apply this union to a somewhat expanded example from the motivation: |
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.
Still says union
- you probably want to search the whole file.
Fixed nits. |
We don't really have a process for updating RFCs, as they're generally meant to express design and intent rather than serve as a reference. That said, it seems fine to just fix this to more correctly describe a (stable) feature the language. |
This reflects rust-lang/rust#52711. I have no idea what the correct process is here.