rust/crates
bors[bot] d075f49e6d
Merge #3960
3960: ellipsis in tuple patterns r=JoshMcguigan a=JoshMcguigan

This PR lowers ellipsis in tuple patterns. It fixes a bug in the way ellipsis were previously lowered (by replacing the ellipsis with a single `Pat::Wild` no matter how many items the `..` was taking the place of).

It also uses this new information to properly handle `..` in tuple struct patterns when perform match statement exhaustiveness checks.

While this PR provides the building blocks for match statement exhaustiveness checks for tuples, there are some additional challenges there, so that is still unimplemented (unlike tuple structs).

Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
2020-04-13 15:20:17 +00:00
..
ra_arena Use resize_with 2020-03-31 09:02:12 -04:00
ra_assists Remove more unnecessary braces 2020-04-12 18:20:03 +03:00
ra_cfg Update versions 2020-02-18 16:12:40 +02:00
ra_db Merge #3727 2020-03-26 17:09:32 +00:00
ra_flycheck Centralize defaults 2020-04-01 18:56:47 +02:00
ra_fmt Provide more complete AST accessors to support usage in rustc 2020-04-09 11:50:37 +02:00
ra_hir Remove dead code 2020-04-11 19:36:31 +02:00
ra_hir_def handle tuple patterns with ellipsis 2020-04-13 08:19:19 -07:00
ra_hir_expand Align grammar for record patterns and literals 2020-04-12 00:00:15 +02:00
ra_hir_ty handle tuple patterns with ellipsis 2020-04-13 08:19:19 -07:00
ra_ide Merge #3955 2020-04-11 22:01:22 +00:00
ra_ide_db Make records grammar more orthogonal 2020-04-11 19:20:41 +02:00
ra_mbe Fix accidently quadratic behavior when processing includes 2020-04-10 19:43:37 +02:00
ra_parser Align grammar for record patterns and literals 2020-04-12 00:00:15 +02:00
ra_proc_macro Introduce ra_proc_macro_srv 2020-04-03 19:01:44 +08:00
ra_proc_macro_srv Improve error handling 2020-04-11 14:53:13 +08:00
ra_prof Move timeit to stdx 2020-04-10 20:46:42 +02:00
ra_project_model Migrate to privacy as per review commets 2020-04-02 21:09:03 +03:00
ra_syntax Align grammar for record patterns and literals 2020-04-12 00:00:15 +02:00
ra_text_edit Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
ra_tt Improve tt::Subtree debug print 2020-04-10 00:17:32 +08:00
rust-analyzer Remove dead code 2020-04-11 19:36:31 +02:00
stdx Move timeit to stdx 2020-04-10 20:46:42 +02:00
test_utils Make records grammar more orthogonal 2020-04-11 19:20:41 +02:00