Inconsistent column numbers when using hard tabs #109537
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
src/main.rs:
src/m.rs:
Current output
Desired output
Rationale and extra context
for the error in
main.rs
, rust gives the column number as a "character index" (i.e. the error is located at the 4th character in the line) which i think is the intended behavior, but for the reference tom.rs
, it seems to be treating a tab as 4 columnsOther cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: