Skip to content

Consider pass macro invocation arguments as AST instead of TokenTree #12488

Closed
@edwardw

Description

@edwardw

That way, more sophisticated and precise transformation can be performed against AST before being passed into macro definitions. The main use case right now would be hygiene let bindings and loop labels.

Is this doable?

cc #12262 #10607 #12338

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions