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

Fix issue #6141: leaking ~fn #6302

Conversation

nikomatsakis
Copy link
Contributor

When autoborrowing a fn in trans, adjust the type of the datum to be &fn.

Fixes #6141.

r? @brson

bors added a commit that referenced this pull request May 8, 2013
…r=brson

When autoborrowing a fn in trans, adjust the type of the datum to be `&fn`.

Fixes #6141.

r? @brson
@bors bors closed this May 8, 2013
@nikomatsakis nikomatsakis deleted the issue-6141-leaking-owned-fn branch March 30, 2016 16:15
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 20, 2020
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 20, 2020
FROM_ITER_INSTEAD_OF_COLLECT: avoid unwrapping unconditionally

Fixes rust-lang#6302

changelog: fix unwrap of None when checking libcore with clippy
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.

3 participants