Skip to content

Make the parser aware of await where macro calls are expected #60653

Description

@estebank

In the recent inclusion of the await parsing, some tests regressed slightly because the parser now assumes a macro call is happening without checking if it is a keyword identifier being misused, so it complains about a missing !:

error: expected `!`, found `{`
--> $DIR/2018-edition-error.rs:13:17
   |
LL |     match await { await => () }
   |     -----       ^ expected `!`
   |     |
   |     while parsing this match expression

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitArea: Async & AwaitA-diagnosticsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions