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

Move to upstream macro_rules! model #6893

Merged
merged 2 commits into from
Dec 15, 2020
Merged

Move to upstream macro_rules! model #6893

merged 2 commits into from
Dec 15, 2020

Conversation

jonas-schievink
Copy link
Contributor

This changes macro_rules! from being treated as a macro invocation to being a first-class item. It also disallows using an additional ident argument for regular macros, so m! ident(...); now fails to parse.

This matches upstream Rust, and makes the code somewhat simpler by removing repeated "is this a macro_rules! call" checks. It will also simplify allowing visibilities on macros, which is currently being proposed in rust-lang/rust#78166.

@matklad
Copy link
Member

matklad commented Dec 15, 2020

Let's merge this before it rotted :)

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 15, 2020

@bors bors bot merged commit bd4c352 into rust-lang:master Dec 15, 2020
@jonas-schievink jonas-schievink deleted the macros-rules branch December 15, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants