-
Notifications
You must be signed in to change notification settings - Fork 883
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
Const expressions break formatting #5273
Labels
Comments
Thanks for the report! looks like the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
stable
rustc --version
:rustc 1.59.0 (9d1b2106e 2022-02-23)
rustfmt --version
:rustfmt 1.4.38-stable (9d1b210 2022-02-23)
nightly
rustc --version
:rustc 1.61.0-nightly (8d60bf427 2022-03-19)
rustfmt --version
:rustfmt 1.4.38-nightly (8d60bf4 2022-03-19)
Current stable and nightly
rustfmt
s format the following code incorrectlyto
Or, with
normalize_comments = true
setIn this case there is a new
// 1048576 }> {
prepended on every format operationThe text was updated successfully, but these errors were encountered: