diff options
| author | bors <bors@rust-lang.org> | 2015-01-19 19:40:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-19 19:40:51 +0000 |
| commit | 4032b85aec962486af7f205e72e93efc8a0bc434 (patch) | |
| tree | b51c26c95b0f384bdfa7e7c446918a5e01d5f63e /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 54c9a4655b8c662b5ce3a7ad8a47a4d4d12e78b7 (diff) | |
| parent | d8372139a7972cf090d8df29148105fc82a0fc2c (diff) | |
| download | rust-4032b85aec962486af7f205e72e93efc8a0bc434.tar.gz rust-4032b85aec962486af7f205e72e93efc8a0bc434.zip | |
Auto merge of #21278 - thchittenden:issue-21033-struct-var-pattern-fix, r=alexcrichton
Closes #21033. The new strategy for parsing a field pattern is to look 1 token ahead and if it's a colon, parse as "fieldname: pat", otherwise parse the shorthand form "(box) (ref) (mut) fieldname)". The previous strategy was to parse "(ref) (mut) fieldname" then if we encounter a colon, throw an error if either "ref" or "mut" were encountered.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
