We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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_rules
Given a macro_rules definition containing only a matcher without a body, rustfmt will delete the matcher text. e.g.
macro_rules! foo { (foo) }
Is converted to:
macro_rules! foo {}
This happens for any brace style, but only if they're the last token. e.g. the following works properly:
macro_rules! foo { (foo) => }
using rustfmt 1.7.0-stable (82e1608d 2023-12-21)
rustfmt 1.7.0-stable (82e1608d 2023-12-21)
The text was updated successfully, but these errors were encountered:
seems related to changes made in #5883. probably need to go back and update the logic to take incomplete matchers into account.
Sorry, something went wrong.
No branches or pull requests
Given a
macro_rules
definition containing only a matcher without a body, rustfmt will delete the matcher text. e.g.Is converted to:
This happens for any brace style, but only if they're the last token. e.g. the following works properly:
using
rustfmt 1.7.0-stable (82e1608d 2023-12-21)
The text was updated successfully, but these errors were encountered: