forked from rust-lang/rustfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't duplicate line numbers when annotating internal errors
Closes 5463 The `annotate_snippets` crate adds line number and column info to the output, so we don't need to append the line number to the `origin`. Previously, internal errors would be output with the line number twice. See how 478 is duplicated in the example below. ``` error[internal]: line formatted, but exceeded maximum width --> /path/to/file.rs:478:478:101 ``` Now the line number is not duplicated. ``` error[internal]: line formatted, but exceeded maximum width --> /path/to/file.rs:478:101 ```
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters