DiagnosticSpanLine pointing inside char boundary #59660
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-Unicode
Area: Unicode
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
A test from the rustc UI tests currently causes a crash when executed with rustfix:
Click to expand backtrace
This is a trimmed down version of
src/tests/ui/utf8_idents.rs
which causes the crash in rustfix:The
DiagnosticSpanLine
thatrustfix
receives looks like this:γ
is 2 bytes long, which leads me to believe that this may not be a bug inrustfix
, but somewhere inrustc
, becausehighlight_end
should be3
in this case?The text was updated successfully, but these errors were encountered: