Skip to content

concat_idents cannot be used in pattern position #50408

Open
@ExpHP

Description

@ExpHP
  • The three places where an ident-returning macro can be used are patterns, types, and expressions.
  • The two places where concat_idents can be used are types and expressions.
  • Hmmmm.

I looked around previous issues and PRs related to concat_idents and the word "pattern" never even comes up. This seems to be an accidental omission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-patternsRelating to patterns and pattern matchingC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions