rust/src/libsyntax/parse
bors 35aeecb8aa 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.
2018-06-06 14:04:06 +00:00
..
lexer Rollup merge of #51240 - nnethercote:parse-2, r=nikomatsakis 2018-05-31 22:17:16 +02:00
attr.rs make it compile again 2018-05-02 12:05:13 +02:00
classify.rs label-break-value: Parsing and AST/HIR changes 2018-05-16 13:56:24 +02:00
common.rs Fix some clippy warnings in libsyntax 2017-05-12 20:05:39 +02:00
mod.rs lexer: Fix span override for the first token in a string 2018-05-20 23:35:00 +03:00
parser.rs Auto merge of #51201 - estebank:dotdot, r=petrochenkov 2018-06-06 14:04:06 +00:00
token.rs Add Ident::as_str helper 2018-05-26 15:20:23 +03:00