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
empty_span.rs
empty_span.stderr
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
issue-28308.rs
issue-28308.stderr
one_line.rs
one_line.stderr
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
tab.rs
tab.stderr
two_files_data.rs
two_files.rs
two_files.stderr
unicode_2.rs
unicode_2.stderr
unicode_3.rs
unicode_3.stderr
unicode.expanded.stdout
unicode.normal.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
unicode.rs