about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-03-27 07:16:29 +0000
committerbors <bors@rust-lang.org>2018-03-27 07:16:29 +0000
commit14ac1b5faab32d268a85dfde6c6592b7183c5864 (patch)
treee276b99607fbb4e812cdde3857510407ccdc2f66 /src/liballoc
parent31ae4f9fde9b23100c26e5642030128a7e1444ef (diff)
parentad50f3389a13d74aa0088bcb39c406193b721769 (diff)
downloadrust-14ac1b5faab32d268a85dfde6c6592b7183c5864.tar.gz
rust-14ac1b5faab32d268a85dfde6c6592b7183c5864.zip
Auto merge of #49279 - varkor:generated-closure-return-type, r=alexcrichton
Fix implicit closure return type generation for libsyntax

The `lambda` function for constructing closures in libsyntax was explicitly setting the return type to `_`, which resulted in incorrect corresponding syntax (as `|| -> _ x` is not valid, without the enclosing brackets). This meant the generated code, when printed, was invalid.

I also took the opportunity to slightly improve the generated code for the `RustcEncodable::encode` method for unit structs.

Fixes #42213.
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions