-
Notifications
You must be signed in to change notification settings - Fork 897
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
rustfmt didn't format macro #3704
Comments
We need to specify the following options to format format_macro_matchers = true
format_macro_bodies = true And even then rustfmt may not be able to format certain |
According to the README of the |
I believe this is the case. rustfmt is only able to format macros with 'valid' syntax. |
OK. thanks for your help. |
Sorry for the late reply. No, it won't be supported in the near future. |
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7309a87bb5e3598b7ca9e80fcb115d60
The code snippet above haven't been formatted by rustfmt.
I have tried remove the
parse
and use the ordinary way of writing that. However, it didn't change anything.The text was updated successfully, but these errors were encountered: