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

call user defined drop impls #74

Merged
merged 14 commits into from
Nov 4, 2016
Merged

call user defined drop impls #74

merged 14 commits into from
Nov 4, 2016

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Nov 3, 2016

No description provided.

Copy link
Member

@solson solson left a comment

Choose a reason for hiding this comment

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

This is great!

// special case `Box` to deallocate the inner allocation
// FIXME: if user defined Drop impls work, then this can go away, since the stdlib calls
// heap::deallocate
if let ty::TyBox(contents_ty) = ty.sty {
Copy link
Member

Choose a reason for hiding this comment

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

Merge this if let into the match below.

@solson
Copy link
Member

solson commented Nov 4, 2016

We should be able to fix this now, right? https://github.com/solson/miri/blob/master/tests/run-pass/vecs.rs#L1

@solson
Copy link
Member

solson commented Nov 4, 2016

In fact you can probably just git revert this whole commit: 366c793.

@oli-obk
Copy link
Contributor Author

oli-obk commented Nov 4, 2016

indeed... reverting that commit simply worked...

@solson solson merged commit ce8806d into rust-lang:master Nov 4, 2016
erickt pushed a commit to erickt/miri that referenced this pull request Feb 4, 2022
docs: improve badges and synopsis
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