Skip to content

macro_rules expr matcher doesn't match async #52951

Closed

Description

@cramertj
macro_rules! match_expr {
    ($x:expr) => {}
}

fn main() {
    match_expr!(async {})
}

fails with "error: no rules expected the token async". Playground link

Activity

  1. petrochenkov commented on Aug 1, 2018

    @petrochenkov
    Contributor

    async needs to be added to fn ident_can_begin_expr in libsyntax.

  2. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    A-parserArea: The lexing & parsing of Rust source code to an AST
    on Aug 1, 2018
  3. added a commit that references this issue on Aug 1, 2018
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-parserArea: The lexing & parsing of Rust source code to an ASTE-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