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
Minimal(ish) repo:
fn main() { let v = 1 + 1 + // test 3; let test = 3; // o }
I would expect the comment // test to have the correct indentation and 3 to also be indented. The later lines are indented correctly.
// test
Tested on current playground, Rust 1.70 Stable https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b7abe453f272fbf2bd4e8dfeac344ddb
The text was updated successfully, but these errors were encountered:
I believe this is the same underlying issue as #3591 and #3167. rustfmt doesn't handle comments well within binary operators.
Sorry, something went wrong.
No branches or pull requests
Minimal(ish) repo:
I would expect the comment
// test
to have the correct indentation and 3 to also be indented.The later lines are indented correctly.
Tested on current playground, Rust 1.70 Stable
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b7abe453f272fbf2bd4e8dfeac344ddb
The text was updated successfully, but these errors were encountered: