-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line numbers are truncated in diagnostics. #67431
Comments
Note that some diagnostics output the line number correctly: error[E0063]: missing fields `happiness`, `sanity` in initializer of `game::Game` --> src/game.rs:1492:18 | 1492 | let mut game = Game { | ^^^^ missing `happiness`, `sanity` error: aborting due to 7 previous errors |
cc @estebank Do you happen to have a more minimal example? |
I tried reproducing on the playground with no luck. I'll see if I can get a minimal example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=47795d540db43935a85384ea7dc91249.
|
What version are you on? Also, is there a repo you can share with a reproduction? |
|
I believe this was fixed the day after that nightly (see #65001). |
@kevincox could you |
Ah, PEBKAC. I didn't realize that I had pinned an exact version of nightly for that directory. I've updated and the issue doesn't appear to be occurring anymore. |
Some, but not all, diagnostics are truncating the line number to 2 digits.
Can we remove this truncation? It makes the most visible location for line numbers basically useless.
Note that the correct line number is 1452, however next to the code it displays 14.
The text was updated successfully, but these errors were encountered: