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

macro future-proofing regression: $a:ty [ b ] is now rejected #30923

Closed
pnkfelix opened this issue Jan 14, 2016 · 3 comments
Closed

macro future-proofing regression: $a:ty [ b ] is now rejected #30923

pnkfelix opened this issue Jan 14, 2016 · 3 comments
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Comments

@pnkfelix
Copy link
Member

(spawned off of #25658 (comment) )

macro future-proofing regression: $a:ty [ b ] is now rejected

This was indeed a direct consequence of the rules as stated in rust-lang/rfcs#1384

But since we may want to fix one-off cases like this, I am opening a separate issue and marking it as a regression.

@pnkfelix
Copy link
Member Author

cc #30450

@pnkfelix
Copy link
Member Author

cc @nikomatsakis @retep998

@LeoTestard
Copy link
Contributor

As of 1.8.0, the following macro compiles on stable:

macro_rules! foo(
    ($a:ty [ $b:ident ]) => ()
);

I think this issue can be closed.

@pnkfelix pnkfelix closed this as completed May 2, 2016
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

No branches or pull requests

3 participants