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
static A: i32 = 10; static B: i32 = 10;
this codes has 2 static variables, then rustfmt --edition 2021 /tmp/ttt/aaa/src/lib.rs report
rustfmt --edition 2021 /tmp/ttt/aaa/src/lib.rs
rewriting static rewriting static
it looks like it reports rewriting static as many times as I have static variables
rewriting static
the rustfmt version is rustfmt 1.7.1-nightly (bcf94de 2024-06-23)
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)
rustfmt 1.7.0-nightly (c1b336c 2024-06-21)
also, use cargo fmt to format also has this problem
cargo fmt
The text was updated successfully, but these errors were encountered:
OsString
windows-registry
https://github.com/rust-lang/rustfmt/issues/6213 / looks like a likely culprit.
Sorry, something went wrong.
rust-lang/rust#126888 fixes
duplicate of #6210
No branches or pull requests
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: