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 improvements #17838

Merged
merged 1 commit into from
Oct 8, 2014
Merged

Macro improvements #17838

merged 1 commit into from
Oct 8, 2014

Conversation

vadimcn
Copy link
Contributor

@vadimcn vadimcn commented Oct 7, 2014

No description provided.

@huonw
Copy link
Member

huonw commented Oct 7, 2014

cc #17830

Also, the first commit can be landed in a flash, but the second commit theoretically requires an RFC, so it may be worth separating them.

@vadimcn
Copy link
Contributor Author

vadimcn commented Oct 7, 2014

ok, I dropped second commit from this PR.

…g options..." error in macros, which often occurs when trying to match parts of Rust syntax.

For example, this matcher: `fn $name:ident( $($param:ident : $pty:ty),* )` would fail when parsing `fn foo()`, because macro parser wouldn't realize that an ident cannot start with `)`.

This resolves rust-lang#5902, and at least partially mitigates rust-lang#9364 and rust-lang#3232.
@bors bors closed this Oct 8, 2014
@bors bors merged commit fc60797 into rust-lang:master Oct 8, 2014
@vadimcn vadimcn deleted the macros branch March 1, 2015 08:02
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.

4 participants