Skip to content

Allow item macros to take type parameters #3190

Closed
@eholk

Description

@eholk

It might be able to write item macros that have type parameters associated with their identifier, such as:

generate_something! foo<T, U> { }

Especially in cases where we are making macros that expand into functions, enums, types, etc., it might be nice to have a single set of type parameters for all of the generated code.

This issue is relevant to #3165.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-syntaxextArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions