rust/compiler/rustc_parse/src/parser
Matthias Krüger 649d0a9525
Rollup merge of #114237 - bvanjoi:fix-114219, r=cjgillot
parser: more friendly hints for handling `async move` in the 2015 edition

Fixes #114219

An error is emitted when encountering an async move block in the 2015 edition.

Another appropriate location to raise an error is after executing [let path = this.parse_path(PathStyle::Expr)?](https://github.com/rust-lang/rust/blob/master/compiler/rustc_parse/src/parser/stmt.rs#L152), but it seems somewhat premature to invoke `create_err` at that stage.
2023-08-03 17:29:07 +02:00
..
attr_wrapper.rs Move TokenCursor::break_last_token into Parser. 2023-08-02 10:11:41 +10:00
attr.rs Move TokenCursor::num_next_calls into Parser and rename it. 2023-08-02 10:07:18 +10:00
diagnostics.rs parser: more friendly hints for handling async move in the 2015 edition 2023-07-31 11:04:28 +08:00
expr.rs Remove MacDelimiter. 2023-08-03 09:03:30 +10:00
generics.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
item.rs Remove MacDelimiter. 2023-08-03 09:03:30 +10:00
mod.rs Remove MacDelimiter. 2023-08-03 09:03:30 +10:00
nonterminal.rs use matches! macro in more places 2023-04-16 12:08:30 +02:00
pat.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
path.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
stmt.rs Remove MacDelimiter. 2023-08-03 09:03:30 +10:00
ty.rs Make it clearer that edition functions are >=, not == 2023-07-19 16:38:35 +00:00