Skip to content

quote_method! fails to parse attributes #17782

Closed
@bgamari

Description

@bgamari

As of a few weeks ago quote_method! was able to parse attributes attached to a quoted method. Recently this fails with a syntax error,

$ rustc test.rs -L.
test.rs:4:1: 4:10 error: unexpected token: `#`
test.rs:4 ioregs!()
          ^~~~~~~~~

See example here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions