Skip to content

The meta fragment specifier is considered as a single TT. #34011

Open
@LeoTestard

Description

@LeoTestard

At various locations of the FOLLOW sets analysis for macro_rules!, meta is considered as always matching a single TT. This is not the case: ident = ... and ident(...) are both valid metas.

That being said the only consequence of this is that meta can be followed by anything, and I think it's not unreasonable to assume that the syntax of meta will not be expanded in the future... But still, we might want to check that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions