rust/src/libsyntax/parse
Mazdak Farrokhzad 36029878e7
Rollup merge of #62928 - Centril:recover-parens-around-for-head, r=estebank
Syntax: Recover on `for ( $pat in $expr ) $block`

Fixes #62724 by adding some recovery:

```
error: unexpected closing `)`
  --> $DIR/recover-for-loop-parens-around-head.rs:10:23
   |
LL |     for ( elem in vec ) {
   |         --------------^
   |         |
   |         opening `(`
   |         help: remove parenthesis in `for` loop: `elem in vec`
```

The last 2 commits are drive-by cleanups.

r? @estebank
2019-07-30 05:37:32 +02:00
..
lexer syntax_ext: proc_macro_decls -> proc_macro_harness 2019-07-27 14:16:16 +03:00
attr.rs Treat doc comments separately 2019-07-27 18:24:17 +07:00
classify.rs let_chains: Remove ast::ExprKind::{IfLet, WhileLet} from visitors and introduce ::Let. 2019-06-23 01:29:29 +02:00
diagnostics.rs Rollup merge of #62928 - Centril:recover-parens-around-for-head, r=estebank 2019-07-30 05:37:32 +02:00
literal.rs move unescape module to rustc_lexer 2019-07-21 16:46:11 +03:00
mod.rs Move standard library injection into libsyntax_ext 2019-07-27 13:56:54 +03:00
parser.rs Rollup merge of #62928 - Centril:recover-parens-around-for-head, r=estebank 2019-07-30 05:37:32 +02:00
token.rs Remove duplicate attr_to_string 2019-07-10 07:11:29 -04:00
unescape_error_reporting.rs Rollup merge of #62917 - estebank:trailing-slash, r=matklad 2019-07-24 16:13:20 +02:00