about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-07 16:27:31 +0000
committerbors <bors@rust-lang.org>2023-12-07 16:27:31 +0000
commit9975650b3e834818ffc9a0e653391c5a64f9f9fe (patch)
treea854c4e8c556d9b063801d306413bd51f3c85a4c /compiler/rustc_interface/src
parent421a0a4ff4a0619a66aceded8f7040444723c78d (diff)
parenta011b6c84c19357d21cd418f011f4d62b320abf7 (diff)
downloadrust-9975650b3e834818ffc9a0e653391c5a64f9f9fe.tar.gz
rust-9975650b3e834818ffc9a0e653391c5a64f9f9fe.zip
Auto merge of #16041 - roife:fix-line-index-widechar, r=Veykril
Fix WideChar offsets calculation in `line-index`

Fix #15981. This PR addresses the issue with the WideChar's offset calculation, ensuring accurate line-specific positions during text analysis in the `lib/line-index` module.

## Changes Made

- Corrected the calculation for `WideChar` offsets, ensuring they reflect positions within respective lines.
- Added tests to verify the accuracy of `WideChar` offset calculations, and correct existing tests.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions