rust/tests/ui/codemap_tests
Esteban Küber 1d78004575
Add Unicode block-drawing compiler output support
Add nightly-only theming support to rustc output using Unicode box
drawing characters instead of ASCII-art to draw the terminal UI:

After:

```
error: foo
  ╭▸ test.rs:3:3
  │
3 │       X0 Y0 Z0
  │   ┌───╿──│──┘
  │  ┌│───│──┘
  │ ┏││━━━┙
  │ ┃││
4 │ ┃││   X1 Y1 Z1
5 │ ┃││   X2 Y2 Z2
  │ ┃│└────╿──│──┘ `Z` label
  │ ┃└─────│──┤
  │ ┗━━━━━━┥  `Y` is a good letter too
  │        `X` is a good letter
  ╰╴
note: bar
  ╭▸ test.rs:4:3
  │
4 │ ┏   X1 Y1 Z1
5 │ ┃   X2 Y2 Z2
6 │ ┃   X3 Y3 Z3
  │ ┗━━━━━━━━━━┛
  ├ note: bar
  ╰ note: baz
note: qux
  ╭▸ test.rs:4:3
  │
4 │   X1 Y1 Z1
  ╰╴  ━━━━━━━━
```

Before:

```
error: foo
 --> test.rs:3:3
  |
3 |       X0 Y0 Z0
  |    ___^__-__-
  |   |___|__|
  |  ||___|
  | |||
4 | |||   X1 Y1 Z1
5 | |||   X2 Y2 Z2
  | |||____^__-__- `Z` label
  | ||_____|__|
  | |______|  `Y` is a good letter too
  |        `X` is a good letter
  |
note: bar
 --> test.rs:4:3
  |
4 | /   X1 Y1 Z1
5 | |   X2 Y2 Z2
6 | |   X3 Y3 Z3
  | |__________^
  = note: bar
  = note: baz
note: qux
 --> test.rs:4:3
  |
4 |   X1 Y1 Z1
  |   ^^^^^^^^
```
2024-11-10 23:57:18 +01:00
..
bad-format-args.rs
bad-format-args.stderr
coherence-overlapping-inherent-impl-trait.rs
coherence-overlapping-inherent-impl-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
empty_span.rs
empty_span.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
huge_multispan_highlight.ascii.svg Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
huge_multispan_highlight.rs Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
huge_multispan_highlight.unicode.svg Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
issue-11715.rs
issue-11715.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-28308.rs
issue-28308.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
one_line.rs
one_line.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
overlapping_inherent_impls.rs
overlapping_inherent_impls.stderr
tab_2.rs
tab_2.stderr Be more accurate about calculating display_col from a BytePos 2024-07-18 20:08:38 +00:00
tab_3.rs
tab_3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
tab.rs
tab.stderr Point to where missing return type should go 2023-10-04 21:09:54 +00:00
two_files_data.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two_files.rs
two_files.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unicode_2.rs
unicode_2.stderr
unicode_3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unicode_3.stderr
unicode.expanded.stdout [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unicode.normal.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
unicode.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00