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

Fixes #29946 (missing drop in FnOnce adapter for closures) #31462

Merged
merged 1 commit into from
Feb 8, 2016

Conversation

thepowersgang
Copy link
Contributor

Generates drop calls at the end of the Fn/FnMut -> FnOnce closure shim

Fix #29946

@rust-highfive
Copy link
Collaborator

r? @jroesch

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

@thepowersgang
Copy link
Contributor Author

r? @pnkfelix

@rust-highfive rust-highfive assigned pnkfelix and unassigned jroesch Feb 7, 2016
@thepowersgang thepowersgang changed the title Fix for #29946 Fixes #29946 Feb 7, 2016
@pnkfelix pnkfelix changed the title Fixes #29946 Fixes #29946 (missing drop in FnOnce adapter for closures) Feb 7, 2016
@dotdash
Copy link
Contributor

dotdash commented Feb 8, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Feb 8, 2016

📌 Commit f08626b has been approved by dotdash

@bors
Copy link
Contributor

bors commented Feb 8, 2016

⌛ Testing commit f08626b with merge 0ce3399...

@bors
Copy link
Contributor

bors commented Feb 8, 2016

💔 Test failed - auto-win-gnu-64-nopt-t

@ghost
Copy link

ghost commented Feb 8, 2016

Just for your information, after running tests with leak sanitizer I noticed
that we already have a test that exercises this bug: sendfn-spawn-with-fn-arg.
This patch indeed fixes it.

@thepowersgang
Copy link
Contributor Author

@tmiasko Nice to see it's fixed more than just the original reporter's issue :) The explicit test in this PR explicitly checks for this case, so it shouldn't pop up again.

Re the failed test, it looks like the test runner timed out during the net tests. Not sure if this is a known transient failure or not.

@bluss
Copy link
Member

bluss commented Feb 8, 2016

@bors retry

@bors
Copy link
Contributor

bors commented Feb 8, 2016

⌛ Testing commit f08626b with merge 26105b1...

bors added a commit that referenced this pull request Feb 8, 2016
Generates drop calls at the end of the Fn/FnMut -> FnOnce closure shim

Fix #29946
@bors bors merged commit f08626b into rust-lang:master Feb 8, 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.

7 participants