diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-02-27 21:12:58 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-03-07 17:55:08 +0000 |
| commit | f1c751bc1a08e3439a9d0c482cbb0ea0fc8f644f (patch) | |
| tree | 6fbbe4b92e8b695c9989163b8482526d27e5f1fb /tests/ui/parser/unbalanced-doublequote.stderr | |
| parent | 72326bfe4033fe51c5cb0f31614bbf6e66ec77f9 (diff) | |
| download | rust-f1c751bc1a08e3439a9d0c482cbb0ea0fc8f644f.tar.gz rust-f1c751bc1a08e3439a9d0c482cbb0ea0fc8f644f.zip | |
Refactor `emitter` to better account for unicode chars when trimming
Change the way that underline positions are calculated by delaying using the "visual" column position until the last possible moment, instead using the "file"/byte position in the file, and then calculating visual positioning as late as possible. This should make the underlines more resilient to non-1-width unicode chars. Unfortunately, as part of this change (which fixes some visual bugs) comes with the loss of some eager tab codepoint handling, but the output remains legible despite some minor regression on the "margin trimming" logic.
Diffstat (limited to 'tests/ui/parser/unbalanced-doublequote.stderr')
| -rw-r--r-- | tests/ui/parser/unbalanced-doublequote.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/parser/unbalanced-doublequote.stderr b/tests/ui/parser/unbalanced-doublequote.stderr index 9fdad87a86c..d40b982da7c 100644 --- a/tests/ui/parser/unbalanced-doublequote.stderr +++ b/tests/ui/parser/unbalanced-doublequote.stderr @@ -3,7 +3,7 @@ error[E0765]: unterminated double quote string | LL | / " LL | | } - | |_^ + | |__^ error: aborting due to 1 previous error |
