-
Notifications
You must be signed in to change notification settings - Fork 850
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
Strange formatting of macro_rules!
macro
#6131
Comments
@Andlon thanks for the report. This definitely feels like a distinct formatting issue. When you get a chance can you run |
@ytmimi: The command In any case, the issue can be reproduced on the playground (see my link in the first issue). There it says that for:
I hope that helps! |
As for configuration options, I assume the playground uses default options? The code base I was working on locally had a
|
Thanks for the extra info! I'm also guessing that the playground uses default options, and I think it's unlikely that the configuration options you're currently using lead to this issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@correabuscar my guess is that this is unrelated. rustfmt doesn't format macros that use repetition so that likely explains why your manual edits are left unchanged. |
With Rust 1.77.1 and
rustfmt
1.7.0, as well as on current nightly2024-03-30
, the following macro definition (playground)formats to
This certainly doesn't look right to me. I looked at other reported macro-related issues but couldn't find any very similar issues.
The text was updated successfully, but these errors were encountered: