about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-06 14:04:06 +0000
committerbors <bors@rust-lang.org>2018-06-06 14:04:06 +0000
commit35aeecb8aa23e2f4ce23a2490921ede0422b5805 (patch)
tree8f5daf652e67c71d067f6491538096cee85ab4c5 /src/rustllvm/RustWrapper.cpp
parent9ac372568b0a63c0abb8953431fa6a392de040a3 (diff)
parentd66d35bb9184b7f3a4e155386ca44410c0d09ff2 (diff)
downloadrust-35aeecb8aa23e2f4ce23a2490921ede0422b5805.tar.gz
rust-35aeecb8aa23e2f4ce23a2490921ede0422b5805.zip
Auto merge of #51201 - estebank:dotdot, r=petrochenkov
Accept `..` in incorrect position to avoid further errors

We currently give a specific message when encountering a `..` anywhere
other than the end of a pattern. Modify the parser to accept it (while
still emitting the error) so that we don't also trigger "missing fields
in pattern" errors afterwards.

Add suggestions to either remove trailing `,` or moving the `..` to the
end.

Follow up to #49268.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions