-
Notifications
You must be signed in to change notification settings - Fork 926
Incorrect indentation when using return
in a macro
#3936
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
Comments
I can reproduce this one with the latest rustfmt version, but only when |
Seriously? That's not a good sign.. I would expect rustfmt internally to just specify levels of indentation and afterwards convert that into actual tabs/spaces. Does rustfmt have an option to specify the number of spaces for one level of indentation? |
https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#tab_spaces |
This was fixed by 2836f9b |
Thanks for confirming @ayazhafiz! Would you be willing to open a PR with a corresponding test case to cover this (and the other relevant issues you noted were fixed by that commit)? It's always super helpful for us to have test cases for past issues to prevent regressions |
For sure. I'll do this in the next day or two.
…On Mon, May 18, 2020 at 8:27 PM Caleb Cartwright ***@***.***> wrote:
Thanks for confirming @ayazhafiz <https://github.com/ayazhafiz>! Would
you be willing to open a PR with a corresponding test case to cover this
(and the other relevant issues you noted were fixed by that commit)?
It's always super helpful for us to have test cases for past issues to
prevent regressions
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3936 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6GL6R6G3IT3BLWUB4BM7DRSH4CLANCNFSM4JQGACQQ>
.
|
The cases with `hard_tabs: true` were fixed in 2836f9b. Not sure about the rest, but this suggests a number of open issues are already resolved. Closes rust-lang#3608 Closes rust-lang#3550 Closes rust-lang#3638 Closes rust-lang#3858 Closes rust-lang#3936
The cases with `hard_tabs: true` were fixed in 2836f9b. Not sure about the rest, but this suggests a number of open issues are already resolved. Closes rust-lang#3608 Closes rust-lang#3550 Closes rust-lang#3638 Closes rust-lang#3858 Closes rust-lang#3936
This macros is formatted using rustfmt:
That closing curly bracket under the return clearly has to be one indented one level less.
Config used:
The text was updated successfully, but these errors were encountered: