]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #63945 - Centril:recover-mut-pat, r=estebank
authorMazdak Farrokhzad <twingoow@gmail.com>
Thu, 29 Aug 2019 03:32:48 +0000 (05:32 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Aug 2019 03:32:48 +0000 (05:32 +0200)
commit52c3846d51b8efabebb02bd2587a87905e068290
treed34b77611677dd3f0e9081a4417262ff3abd1307
parenteb4ac32c5944e5c690f8731a8b25eaae8cbad0a7
parent42e895d4d99ec7724f3efd632f52170f3f99a5aa
Rollup merge of #63945 - Centril:recover-mut-pat, r=estebank

Recover `mut $pat` and other improvements

- Recover on e.g. `mut Foo(x, y)` and suggest `Foo(mut x, mut y)`. Fixes https://github.com/rust-lang/rust/issues/63764.
- Recover on e.g. `let mut mut x;`
- Recover on e.g. `let keyword` and `let keyword(...)`.
- Cleanups in `token.rs` with `fn is_non_raw_ident_where` and friends.
src/libsyntax/parse/parser/pat.rs
src/libsyntax_pos/symbol.rs