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 adds a comma to the following and causes a compiler error.
macro_rules! idx { ($(#[$attr:meta])* $vis:vis struct $name:ident; $metadata:ident) => { $(#[$attr])* $vis struct $name(usize); }; } idx!( #[derive(Debug)] pub struct FooIdx; // rustfmt adds a comma here Meta );
The text was updated successfully, but these errors were encountered:
Thanks for the report. Confirming I can reproduce this with rustfmt 1.8.0-nightly (c6c8159 2025-02-27)
Input:
idx!( #[derive(Debug)] pub struct FooIdx; // rustfmt adds a comma here Meta );
Output:
idx!( #[derive(Debug)] pub struct FooIdx;, // rustfmt adds a comma here Meta );
Sorry, something went wrong.
No branches or pull requests
Rustfmt adds a comma to the following and causes a compiler error.
The text was updated successfully, but these errors were encountered: