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
Rustfmt turns this input:
macro_rules! repro { () => { { let _guard = (); } { let _guard = (); } }; }
into this output:
macro_rules! repro { () => {{ let _guard = (); } { let _guard = (); }}; }
I believe the original is clearer.
The text was updated successfully, but these errors were encountered:
Relevant-looking code:
https://github.com/rust-lang-nursery/rustfmt/blob/a92a1cb51283bc6861bb1bb33b2b34c36b5d16bd/src/macros.rs#L1216
Mentioning @RReverser who implemented this in #2393.
Sorry, something went wrong.
Sorry I missed this! I agree this should be fixed, has_block_body heuristic is far from perfect for this case.
Macro bodies are left unchanged when format_macro_bodies=false
format_macro_bodies=false
linking tracking issue for format_macro_bodies #3355
format_macro_bodies
No branches or pull requests
Rustfmt turns this input:
into this output:
I believe the original is clearer.
The text was updated successfully, but these errors were encountered: