Skip to content

refactor drop glue and fix Box<Box<Struct>> as Box<Trait> #136

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

Merged
merged 7 commits into from
Feb 10, 2017

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Feb 9, 2017

fixes #129

the commits are best viewed each on its own

src/memory.rs Outdated
/// Drop glue takes the `self` by value, while `Drop::drop` take `&mut self`
DropGlue(FunctionDefinition<'tcx>),
/// A drop glue function only needs to know the real type, and then miri can extract the
/// actual type at runtime.
Copy link
Member

Choose a reason for hiding this comment

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

Can you clarify "real type" vs "actual type"?

@solson solson merged commit c342cb5 into rust-lang:master Feb 10, 2017
erickt pushed a commit to erickt/miri that referenced this pull request Feb 4, 2022
Add more methods matching the standard HashMap
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.

drop in Box<Box<T>> as Box<Trait> broken
2 participants