Skip to content

[MIR] Do not forget to drop the boxes on scope exits #31465

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 1 commit into from
Feb 10, 2016

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Feb 7, 2016

Fixes #31463

@rust-highfive
Copy link
Contributor

r? @jroesch

(rust_highfive has picked a reviewer for you, use r? to override)

@nagisa
Copy link
Member Author

nagisa commented Feb 7, 2016

r? @nikomatsakis

@rust-highfive rust-highfive assigned nikomatsakis and unassigned jroesch Feb 7, 2016
@nagisa nagisa changed the title Do not forget to drop the boxes on scope exits [MIR] Do not forget to drop the boxes on scope exits Feb 7, 2016
unit_temp: Lvalue<'tcx>,
data: &FreeData<'tcx>,
target: BasicBlock)
-> BasicBlock {
target: BasicBlock) -> Terminator<'tcx> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: -> on its own line

@nikomatsakis
Copy link
Contributor

I guess we don't have a "leak detector" like we used to, huh? Seems like a good example of where it'd be nice to write "pattern matching" tests against the resulting MIR.

@nikomatsakis
Copy link
Contributor

Anyway, silly me for forgetting you need cleanup even on the normal path, seems obvious now :)

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 9, 2016

📌 Commit 7faaf0e has been approved by nikomatsakis

bors added a commit that referenced this pull request Feb 10, 2016
@bors
Copy link
Collaborator

bors commented Feb 10, 2016

⌛ Testing commit 7faaf0e with merge 9a20bfc...

@bors bors merged commit 7faaf0e into rust-lang:master Feb 10, 2016
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.

5 participants