Skip to content

Enhance macro rewrite #1937

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

Merged
merged 1 commit into from
Aug 31, 2017
Merged

Conversation

topecongiro
Copy link
Contributor

This PR enhances macro rewrite in two folds:

  1. Closes rustfmt fails to format macro call after macro call with invalid syntax #1742.
  2. Allow ast::Ty and ast::Pat to appear in macro arguments (currently rustfmt is only capable of ast::Expr). Closes Code within stringify!(...) and assert_eq!(...) not being formatted very well #1919.

@nrc nrc merged commit 59d1e84 into rust-lang:master Aug 31, 2017
@nrc
Copy link
Member

nrc commented Aug 31, 2017

Thank you!

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