-
Notifications
You must be signed in to change notification settings - Fork 888
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 breaks macros due to changes #4631
Comments
I have just hit a similar issue with fn main() {
quote!(type Foo: Bar;);
} becomes fn main() {
quote!(
type Foo: Bar = impl Bar;
);
} (where the result is not even valid stable rust code) |
the same, could use |
Thanks for the tip with |
|
closing this as a duplicate of #4375 |
Describe the bug
The contents of macros are changed.
Input:
Output:
Expected behavior
Unchanged, or "formatted" but not keywords/symbols removed/added.
Meta
The text was updated successfully, but these errors were encountered: