-
Notifications
You must be signed in to change notification settings - Fork 924
Format macro def with repeat #2388
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
Labels
Comments
A minimal example: macro lex_err($kind: ident $(, $body: expr)*) {
Err(QlError::LexError(LexError::$kind($($body,)*)))
} from macro def in nrc/graphql/src/parser/lexer.rs. |
The minimal example: macro foo() {
$(x)*
} |
This is due to We ignore an opening parenthesis after Removing |
Or, rather than removing |
ayazhafiz
added a commit
to ayazhafiz/rustfmt
that referenced
this issue
Jun 8, 2020
Adds regression tests for the following issues which seem to be fixed on master: Closes rust-lang#1762 Closes rust-lang#2201 Closes rust-lang#2388 Closes rust-lang#2672 Closes rust-lang#2755 Closes rust-lang#2947 Closes rust-lang#2978 Closes rust-lang#3148 Closes rust-lang#3206 @topecongiro @calebcartwright appologies for the large number of issues in this commit; if you prefer I can split it up into 2+.
ayazhafiz
added a commit
to ayazhafiz/rustfmt
that referenced
this issue
Jun 9, 2020
Adds regression tests for the following issues which seem to be fixed on master: Closes rust-lang#1762 Closes rust-lang#2388 Closes rust-lang#2672 Closes rust-lang#2755 Closes rust-lang#2947 Closes rust-lang#2978 Closes rust-lang#3148 Closes rust-lang#3206 @topecongiro @calebcartwright appologies for the large number of issues in this commit; if you prefer I can split it up into 2+.
Merged
calebcartwright
pushed a commit
that referenced
this issue
Jun 9, 2020
* Prune stale issues Adds regression tests for the following issues which seem to be fixed on master: Closes #1762 Closes #2388 Closes #2672 Closes #2755 Closes #2947 Closes #2978 Closes #3148 Closes #3206 @topecongiro @calebcartwright appologies for the large number of issues in this commit; if you prefer I can split it up into 2+. * fixup! Prune stale issues
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just running
cargo fmt
at the root of nrc/graphql. Also happens at nrc/graphql/graphql. I have no idea why.The text was updated successfully, but these errors were encountered: