Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
HeroesGrave opened this issue Apr 1, 2015 · 1 comment
Closed

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

HeroesGrave opened this issue Apr 1, 2015 · 1 comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Comments

@HeroesGrave
Copy link
Contributor

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.

@steveklabnik
Copy link
Member

superseded by #34303, I believe. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants