rust/crates
bors[bot] 2d79a1ad83
Merge #1848
1848: Parse `..` as a full pattern r=matklad a=ecstatic-morse

Resolves #1479.

This PR implements [RFC 2707](https://github.com/rust-lang/rfcs/pull/2707) in the parser. It introduces a new `DotDotPat` AST node modeled on `PlaceholderPat` and changes the parsing of tuple and slice patterns to conform to the RFC.

Notably, this PR does *not* change the resulting AST when `..` appears in a struct pattern (e.g. `Struct { a, b: c, .. }`). I *think* this is the behavior mandated by RFC 2707, but someone should confirm this.

Co-authored-by: Dylan MacKenzie <ecstaticmorse@gmail.com>
2019-09-15 07:10:16 +00:00
..
ra_arena
ra_assists rename AdtDef -> Adt 2019-09-13 00:34:52 +03:00
ra_batch don't break parser error recovery in presence of macros 2019-09-12 12:38:07 +03:00
ra_cli add quiet mode to analysis-stats 2019-09-12 11:45:33 +03:00
ra_db introduce hir debugging infra 2019-09-09 12:32:16 +03:00
ra_fmt fix hir for new block syntax 2019-09-02 21:23:19 +03:00
ra_hir Add DotDotPat to AST 2019-09-14 17:08:22 -07:00
ra_ide_api Remove a dbg! 2019-09-14 11:05:42 +02:00
ra_lsp_server introduce hir debugging infra 2019-09-09 12:32:16 +03:00
ra_mbe cleanup expansion to item list 2019-09-10 22:22:57 +03:00
ra_parser Merge #1848 2019-09-15 07:10:16 +00:00
ra_prof ⬆️ once_cell 2019-09-01 23:18:15 +03:00
ra_project_model introduce hir debugging infra 2019-09-09 12:32:16 +03:00
ra_syntax Merge #1848 2019-09-15 07:10:16 +00:00
ra_text_edit
ra_tools Fix the formatting issues 2019-09-12 12:16:09 +03:00
ra_tt
ra_vfs_glob add option to disable notify 2019-09-06 17:21:29 +03:00
test_utils translate \n -> \r\n on the way out 2019-08-20 19:53:05 +03:00