Skip to content

Conversation

maccoda
Copy link
Contributor

@maccoda maccoda commented Oct 18, 2017

Fixes #467 by adding a destructor section in relation to the Drop trait.

fn main() {
let x = ToDrop;
println!("Got a ToDrop reference");
Copy link
Contributor

Choose a reason for hiding this comment

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

x isn't a reference, so maybe

Made a ToDrop!

thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So true!
Like what you have proposed, will take that 😄

@maccoda
Copy link
Contributor Author

maccoda commented Oct 30, 2017

@steveklabnik Just rebased the commit to account for the changes. Not sure if that will kick of CI again being the same commit hash.

Edit: Never mind, the second I commented CI kicked off.

@steveklabnik steveklabnik merged commit 1788c74 into rust-lang:master Oct 30, 2017
@steveklabnik
Copy link
Contributor

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants