You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that #![rustfmt::skip] is ignored. I'm not sure if this attribute is broken completely, but I was able to reduce code to the minimum and rustfmt still formats the code. Originally I encountered this issue in the rust-protobuf project where generated files contain the global skip attribute: stepancheg/rust-protobuf#511
To Reproduce
Run cargo fmt for the following code:
Thank you for filing an issue. The issue is fixed in the latest development branch and the nightly channel, but unfortunately, the latest stable channel missed the fix.
The rustup release team will backport the fix; please follow this issue to track the progress.
Describe the bug
It seems that
#![rustfmt::skip]
is ignored. I'm not sure if this attribute is broken completely, but I was able to reduce code to the minimum and rustfmt still formats the code. Originally I encountered this issue in therust-protobuf
project where generated files contain the global skip attribute: stepancheg/rust-protobuf#511To Reproduce
Run
cargo fmt
for the following code:Expected behavior
I expect no changes after
cargo fmt
and no output after thecargo fmt -- --check
command.Meta
cargo fmt
The text was updated successfully, but these errors were encountered: