-
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
rustfmt report "rewriting static" #6213
Comments
https://github.com/rust-lang/rustfmt/issues/6213 / looks like a likely culprit. |
rust-lang/rust#126888 fixes |
duplicate of #6210 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this codes has 2 static variables, then
rustfmt --edition 2021 /tmp/ttt/aaa/src/lib.rs
reportit looks like it reports
rewriting static
as many times as I have static variablesthe rustfmt version is
rustfmt 1.7.1-nightly (bcf94de 2024-06-23)
that didn't happen in previous version, such as
rustfmt 1.7.0-nightly (c1b336c 2024-06-21)
also, use
cargo fmt
to format also has this problemThe text was updated successfully, but these errors were encountered: