Skip to content

Support macro invocations in match branch position #2654

Open
@canndrew

Description

@canndrew

Sorry if there's already and issue for this, but I couldn't find one.

On many occasions I've wanted to use macros to generate match branches. eg.

match x {
    macro_which_outputs_some_branches!(),
    Foo::Bar => 23,
}

Is there a reason not to support this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-control-flowProposals relating to control flow.A-macrosMacro related proposals and issuesA-patternsPattern matching related proposals & ideasA-syntaxSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions