about summary refs log tree commit diff
path: root/src/libstd/sys/redox/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-26 21:47:25 -0700
committerGitHub <noreply@github.com>2016-10-26 21:47:25 -0700
commitbc283c9487b4607d0a97635dca8c8812b886047b (patch)
tree040a1ecd30c067e722c03ff8a05dc1de0dfb2c29 /src/libstd/sys/redox/stack_overflow.rs
parent4a584637b0081c96c53c6048fd3715912c94a59b (diff)
parent9908711e5e985e322a9576b25f982835504ead5c (diff)
downloadrust-bc283c9487b4607d0a97635dca8c8812b886047b.tar.gz
rust-bc283c9487b4607d0a97635dca8c8812b886047b.zip
Auto merge of #11994 - eddyb:struct-literal-field-shorthand, r=nrc
Implement field shorthands in struct literal expressions.

Implements #37340 in a straight-forward way: `Foo { x, y: f() }` parses as `Foo { x: x, y: f() }`.
Because of the added `is_shorthand` to `ast::Field`, this is `[syntax-breaking]` (cc @Manishearth).

* [x] Mark the fields as being a shorthand (the exact same way we do it in patterns), for pretty-printing.
* [x] Gate the shorthand syntax with `#![feature(field_init_shorthand)]`.
* [x] Don't parse numeric field as identifiers.
* [x] Arbitrary field order tests.
Diffstat (limited to 'src/libstd/sys/redox/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions