rustfmt
is not idempotent and not consistent
#4963
Labels
bug
Panic, non-idempotency, invalid code, etc.
rustfmt
is not idempotent and not consistent
#4963
When formatting the following code,
The first diff suggested by
rustfmt
isAfter running this formatting, the next suggestion is
The final result seems to be correct, but should most likely be applied at once, not in two steps.
Additionally, removing the
mod
block causes the changes to look like this:This change is idempotent, but I would expect the closing
}
to be moved to the next line (which is what happens if a whitespace is put in between the final;
and}
).The text was updated successfully, but these errors were encountered: