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
$ cargo fmt --all -- --check --config unstable_features=true --config error_on_unformatted=true
error[internal]: not formatted because a comment would be lost
--> /home/path/redacted/mod.rs:55
|
92 | match rp.kind {
|
= note: set `error_on_unformatted = false` to suppress the warning against comments or string literals
warning: rustfmt has failed to format. See previous 1 errors.
I expected the command to exit with a non-zero status code to make sure it fails on CI, but it didn't. I suppose it's because the error[internal] is not actually an error, but a warning or smth like a non-failing error? I think this is a bug.
Versions
This behavior reproduces both on stable 1.74.0 and on nightly:
I tried this command in my repo.
I expected the command to exit with a non-zero status code to make sure it fails on CI, but it didn't. I suppose it's because the
error[internal]
is not actually an error, but a warning or smth like a non-failing error? I think this is a bug.Versions
This behavior reproduces both on stable
1.74.0
and on nightly:References
Tracking issue reference: #3392
The text was updated successfully, but these errors were encountered: