Skip to content

Support 2021 Edition pat matcher in macro_rules #9055

Closed
@jonas-schievink

Description

@jonas-schievink

When a macro is defined in an edition 2021 crate, the :pat matcher should match "pattern_top" instead of "pattern_single", which allows or-patterns. :pat_param will match "pattern_single" in all editions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionBroken WindowBugs / technical debt to be addressed immediatelyS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions