Comment inconsistency with file-lines option #3442
Labels
bug
Panic, non-idempotency, invalid code, etc.
only-with-option
requires a non-default option value to reproduce
Given this source:
If you format the whole file, then it works fine. However if you use
--file-lines
on a range that just covers lines 1 and 2, it drops the space before the comment:Extending the range to the next line works correctly:
This is
rustfmt 1.0.3-nightly (d6829d6 2019-02-14)
The text was updated successfully, but these errors were encountered: