We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Fallout from demoding. This will leave a dangling allocation on the exchange heap.
fn run(f: &fn()) { f() } fn main() { let f: ~fn() = || (); run(f); }
The text was updated successfully, but these errors were encountered:
Nominating production ready.
Sorry, something went wrong.
Huh. I'll take a quick look. What should be happening is that f is borrowed by run and freed by main. I thought I fixed this, guess not.
f
run
main
accepted for production ready
When autoborrowing a fn in trans, adjust the type of the datum to be …
11f7cb2
…`&fn`. Fixes rust-lang#6141.
Fix is in PR #6302.
auto merge of #6302 : nikomatsakis/rust/issue-6141-leaking-owned-fn, …
d35eb6e
…r=brson When autoborrowing a fn in trans, adjust the type of the datum to be `&fn`. Fixes #6141. r? @brson
This has been fixed now it seems.
nikomatsakis
No branches or pull requests
Fallout from demoding. This will leave a dangling allocation on the exchange heap.
The text was updated successfully, but these errors were encountered: