Skip to content

Can't use externally defined lifetimes in macros due to hygiene #23956

Closed
@HeroesGrave

Description

@HeroesGrave

I've tried using ty, expr, tt and ident fragments but nothing works.

Macros should have a lifetime fragment type ($foo:lifetime). It's currently a rather annoying hole in macro_rules! usability.

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