opened 03:14PM - 10 Dec 20 UTC
A-diagnostics
T-compiler
C-bug
repro:
````
git clone https://github.com/matthiaskrgr/cargo-cache
cd cargo-ca…che
git checkout rustfmt_bug
cargo fmt
````
````
error[internal]: left behind trailing whitespace
--> /home/matthias/vcs/github/cargo-cache/src/library.rs:147:147:0
|
147 |
| ^^^^
|
warning: rustfmt has failed to format. See previous 1 errors.
````
This `"147:147:0` seems super suspicious, why is printing the column twice in the span location??
rustfmt gets its span information from rustc afaik thus I opened this ticket against rustc.
`rustfmt 1.4.29-nightly (70ce182 2020-12-04)`
````
rustc 1.50.0-nightly (f0f68778f 2020-12-09)
binary: rustc
commit-hash: f0f68778f798d6d34649745b41770829b17ba5b8
commit-date: 2020-12-09
host: x86_64-unknown-linux-gnu
release: 1.50.0-nightly
````