rust/src/librustc_parse/parser
Mazdak Farrokhzad 03591e8a78
Rollup merge of #70421 - Centril:recover-const-async-fn-ptr, r=estebank
parse: recover on `const fn()` / `async fn()`

Recover on `const fn()` and `async fn()` function pointers, suggesting to remove the qualifier.
For example:
```
error: an `fn` pointer type cannot be `async`
  --> $DIR/recover-const-async-fn-ptr.rs:6:11
   |
LL | type T3 = async fn();
   |           -----^^^^^
   |           |
   |           `async` because of this
   |           help: remove the `async` qualifier
```

r? @estebank
2020-04-02 14:27:54 +02:00
..
attr.rs parser/attr: adjust indentation. 2020-03-10 08:35:23 +01:00
diagnostics.rs Clean up redudant conditions and match exprs 2020-03-30 12:39:40 -04:00
expr.rs parse_and_disallow_postfix_after_cast: account for ExprKind::Err. 2020-03-30 09:55:57 +02:00
generics.rs recover on for<'a> |...| body closures. 2020-03-21 09:54:03 +01:00
item.rs Rollup merge of #70421 - Centril:recover-const-async-fn-ptr, r=estebank 2020-04-02 14:27:54 +02:00
mod.rs parse: nix unused root_module_name. 2020-03-21 22:51:03 +01:00
pat.rs Throw error when encountering ... instead of .. while destructing a pattern 2020-03-26 13:25:34 +05:30
path.rs address some review comments 2020-03-27 09:29:38 +01:00
stmt.rs summarize if-else-code with identical blocks (clippy::if_same_then_else) 2020-03-22 00:34:16 +01:00
ty.rs parse: recover on const fn() / async fn(). 2020-03-26 09:44:11 +01:00