Skip to content
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

Merged
merged 2 commits into from
Aug 9, 2018

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Aug 1, 2018

This reflects rust-lang/rust#52711. I have no idea what the correct process is here.

@@ -96,6 +97,9 @@ impl<T> DerefMut for ManuallyDrop<T> {
// Other common impls such as `Debug for T: Debug`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary now.

@@ -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:
Copy link
Member

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.

@RalfJung
Copy link
Member Author

RalfJung commented Aug 1, 2018

Fixed nits.

@Centril Centril added the T-lang Relevant to the language team, which will review and decide on the RFC. label Aug 3, 2018
@cramertj
Copy link
Member

cramertj commented Aug 9, 2018

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.

@nikomatsakis nikomatsakis merged commit 4b7ff2f into rust-lang:master Aug 9, 2018
@Centril Centril added A-drop Proposals relating to the Drop trait or drop semantics A-typesystem Type system related proposals & ideas labels Nov 23, 2018
@RalfJung RalfJung deleted the manually-drop branch September 16, 2019 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-drop Proposals relating to the Drop trait or drop semantics A-typesystem Type system related proposals & ideas T-lang Relevant to the language team, which will review and decide on the RFC.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants