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

RFC: Allow coercing non-capturing closures to function pointers. #1558

Merged
merged 4 commits into from
Feb 14, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update coercion definition in summary
archshift authored Feb 1, 2017
commit 569abdf4876c0805064636e7041be8c41caacbd1
4 changes: 2 additions & 2 deletions text/0000-closure-to-fn-coercion.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Summary
[summary]: #summary

A non-capturing (that is, does not `Clone` or `move` any local variables) closure
should be coercable to a function pointer (`fn`).
A closure that does not move, borrow, or otherwise access (capture) local
variables should be coercable to a function pointer (`fn`).

# Motivation
[motivation]: #motivation
Expand Down