]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #23475 - nikomatsakis:closure-ret-syntax, r=acrichto
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 19 Mar 2015 00:38:56 +0000 (06:08 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 19 Mar 2015 03:19:34 +0000 (08:49 +0530)
commita32bb1bcc4c6b8806b1058c2f654415341240233
tree1717211063e60c2c1a2fef6edea13b344aa8a1c2
parentc7392be96865c9e0717a73a4d4d4242d87232a5b
parentc225824bded695c8bced713f5a4c62fe327277bc
Rollup merge of #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 #23420.
src/libsyntax/parse/parser.rs