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

rustc: Allow return to return from a closure. #11024

Merged
merged 1 commit into from
Dec 18, 2013

Conversation

huonw
Copy link
Member

@huonw huonw commented Dec 17, 2013

With the old for gone, this behaviour is no longer conflicting with
that use of return in closures, and this allows shortcircuiting in a
closure.

@huonw
Copy link
Member Author

huonw commented Dec 17, 2013

I guess this should be discussed in a meeting?

@emberian
Copy link
Member

💓

@alexcrichton
Copy link
Member

I have added this to the meeting agenda

With the old `for` gone, this behaviour is no longer conflicting with
that use of `return` in closures, and this allows shortcircuiting in a
closure.
bors added a commit that referenced this pull request Dec 18, 2013
With the old `for` gone, this behaviour is no longer conflicting with
that use of `return` in closures, and this allows shortcircuiting in a
closure.
@bors bors closed this Dec 18, 2013
@bors bors merged commit 6876916 into rust-lang:master Dec 18, 2013
@huonw huonw deleted the return-from-closures branch February 25, 2014 05:28
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
Reload project on .cargo/config[.toml] changes

Fixes rust-lang#11024

Not adding tests as discussed in the issue
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.

4 participants