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

Implement tweak to closure grammar #23420

Closed
brson opened this Issue Mar 16, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@brson
Copy link
Contributor

brson commented Mar 16, 2015

@brson brson added this to the 1.0 beta milestone Mar 16, 2015

nikomatsakis added a commit to nikomatsakis/rust that referenced this issue Mar 18, 2015

Require braces when a closure has an explicit return type. This is a
[breaking-change]: instead of a closure like `|| -> i32 22`, prefer `||
-> i32 { 22 }`.

Fixes rust-lang#23420.

nikomatsakis added a commit to nikomatsakis/rust that referenced this issue Mar 18, 2015

Require braces when a closure has an explicit return type. This is a
[breaking-change]: instead of a closure like `|| -> i32 22`, prefer `||
-> i32 { 22 }`.

Fixes rust-lang#23420.

nikomatsakis added a commit to nikomatsakis/rust that referenced this issue Mar 19, 2015

Require braces when a closure has an explicit return type. This is a
[breaking-change]: instead of a closure like `|| -> i32 22`, prefer `||
-> i32 { 22 }`.

Fixes rust-lang#23420.

Manishearth added a commit to Manishearth/rust that referenced this issue Mar 19, 2015

Rollup merge of rust-lang#23475 - nikomatsakis:closure-ret-syntax, r=…
…acrichto

 Require braces when a closure has an explicit return type. This is a [breaking-change]: instead of a closure like `|| -> i32 22`, prefer `|| -> i32 { 22 }`.

Fixes rust-lang#23420.

Manishearth added a commit to Manishearth/rust that referenced this issue Mar 19, 2015

Rollup merge of rust-lang#23475 - nikomatsakis:closure-ret-syntax, r=…
…acrichto

 Require braces when a closure has an explicit return type. This is a [breaking-change]: instead of a closure like `|| -> i32 22`, prefer `|| -> i32 { 22 }`.

Fixes rust-lang#23420.

Manishearth added a commit to Manishearth/rust that referenced this issue Mar 19, 2015

Rollup merge of rust-lang#23475 - nikomatsakis:closure-ret-syntax, r=…
…acrichto

 Require braces when a closure has an explicit return type. This is a [breaking-change]: instead of a closure like `|| -> i32 22`, prefer `|| -> i32 { 22 }`.

Fixes rust-lang#23420.

@bors bors closed this in #23475 Mar 19, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.