rust/tests/ui/lexer
Esteban Küber f1c751bc1a 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.
2025-03-07 17:55:08 +00:00
..
dont-ice-on-invalid-lifetime-in-macro-definition.rs Fix invalid silencing of parsing error 2024-04-07 17:22:34 +00:00
dont-ice-on-invalid-lifetime-in-macro-definition.stderr Fix invalid silencing of parsing error 2024-04-07 17:22:34 +00:00
emoji-literal-prefix.rs Properly handle emojis as literal prefix in macros 2024-04-10 23:19:27 +00:00
emoji-literal-prefix.stderr Properly handle emojis as literal prefix in macros 2024-04-10 23:19:27 +00:00
error-stage.rs
error-stage.stderr
floating-point-0e10-issue-40408.rs Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
lex-bad-binary-literal.rs
lex-bad-binary-literal.stderr
lex-bad-char-literals-1.rs
lex-bad-char-literals-1.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
lex-bad-char-literals-2.rs
lex-bad-char-literals-2.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-char-literals-3.rs
lex-bad-char-literals-3.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-char-literals-4.rs
lex-bad-char-literals-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lex-bad-char-literals-5.rs
lex-bad-char-literals-5.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-char-literals-6.rs
lex-bad-char-literals-6.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-char-literals-7.rs
lex-bad-char-literals-7.stderr
lex-bad-numeric-literals.rs
lex-bad-numeric-literals.stderr
lex-bad-octal-literal.rs
lex-bad-octal-literal.stderr
lex-bad-str-literal-as-char-1.fixed Handle str literals written with ' lexed as lifetime 2024-03-17 23:35:18 +00:00
lex-bad-str-literal-as-char-1.rs Handle str literals written with ' lexed as lifetime 2024-03-17 23:35:18 +00:00
lex-bad-str-literal-as-char-1.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-str-literal-as-char-2.fixed Handle str literals written with ' lexed as lifetime 2024-03-17 23:35:18 +00:00
lex-bad-str-literal-as-char-2.rs Handle str literals written with ' lexed as lifetime 2024-03-17 23:35:18 +00:00
lex-bad-str-literal-as-char-2.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-str-literal-as-char-3.rs Fix invalid silencing of parsing error 2024-04-07 17:22:34 +00:00
lex-bad-str-literal-as-char-3.rust2015.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-str-literal-as-char-3.rust2018.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-str-literal-as-char-3.rust2021.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-str-literal-as-char-4.rs Fix invalid silencing of parsing error 2024-04-07 17:22:34 +00:00
lex-bad-str-literal-as-char-4.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lex-bad-token.rs
lex-bad-token.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lex-bare-cr-nondoc-comment.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lex-bare-cr-string-literal-doc-comment.rs
lex-bare-cr-string-literal-doc-comment.stderr Replace ASCII control chars with Unicode Control Pictures 2024-07-18 19:23:42 +00:00
lex-emoji-identifiers.rs separate messages for individual categories 2024-02-26 10:09:03 +08:00
lex-emoji-identifiers.stderr separate messages for individual categories 2024-02-26 10:09:03 +08:00
lex-stray-backslash.rs
lex-stray-backslash.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lexer-crlf-line-endings-string-literal-doc-comment.rs Annotate input reference tests 2024-10-30 16:47:47 -07:00
prefixed-lifetime.rs Reserve prefix lifetimes too 2024-09-06 10:32:48 -04:00
prefixed-lifetime.stderr Reserve prefix lifetimes too 2024-09-06 10:32:48 -04:00
unterminated-comment.rs
unterminated-comment.stderr Be more accurate about calculating display_col from a BytePos 2024-07-18 20:08:38 +00:00
unterminated-nested-comment.rs
unterminated-nested-comment.stderr Refactor emitter to better account for unicode chars when trimming 2025-03-07 17:55:08 +00:00