-
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 adds new indentation every time it formats let else
in macro declaration
#5503
Comments
Thanks for reaching out. I think the underlying issue is that rustfmt doesn't currently format let else expressions because the rules for formatting them have not yet been finalized via an RFC in fmt-rfcs repo. Related issues are #5489, #5044, and #4609 which also deal with cases where extra indentation is added in macro definitions when rustfmt fails to format the macro body. |
This is a precise dupe of #5213 , which got closed as dupe of the issues linked above. |
It's quite interesting that this is the second time that this specific let else case was hit. Maybe many people wrote macros in that fashion and now want to replace them with |
I don't know about the other bug, but I was writing |
Going to close this as a duplicate of #5213 As mentioned above, the underlying issue here is that rustfmt doesn't currently format If the macro indentation behavior continues after |
Example code:
The text was updated successfully, but these errors were encountered: