about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doc-alias-same-name.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-02-27 21:12:58 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-03-07 17:55:08 +0000
commitf1c751bc1a08e3439a9d0c482cbb0ea0fc8f644f (patch)
tree6fbbe4b92e8b695c9989163b8482526d27e5f1fb /tests/rustdoc-ui/doc-alias-same-name.rs
parent72326bfe4033fe51c5cb0f31614bbf6e66ec77f9 (diff)
downloadrust-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/rustdoc-ui/doc-alias-same-name.rs')
0 files changed, 0 insertions, 0 deletions