bors
42b2496320
Auto merge of #126597 - estebank:unicode-output, r=fmease
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.
In order to enable, the flags `-Zunstable-options=yes --error-format=human-unicode` must be passed in.
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
| ^^^^^^^^
```
After:

Before:

2024-11-11 00:00:58 +00:00
..
2024-10-30 14:01:37 -07:00
2024-08-13 15:08:07 +02:00
2024-10-15 15:42:53 +02:00
2024-09-30 21:58:18 +00:00
2024-09-28 18:38:11 +02:00
2024-08-13 20:14:57 +02:00
2024-08-13 20:14:57 +02:00
2024-08-13 20:14:57 +02:00
2024-08-13 20:14:57 +02:00
2024-09-12 13:47:51 -07:00
2024-09-12 13:48:51 -07:00
2024-10-04 09:09:20 +02:00
2024-10-15 13:28:39 +02:00
2024-10-15 13:28:39 +02:00
2024-09-25 13:26:48 +02:00
2024-11-10 23:57:18 +01:00
2024-09-12 13:47:51 -07:00
2024-09-12 13:47:51 -07:00
2024-09-12 13:48:51 -07:00
2024-09-09 22:35:10 +02:00
2024-09-09 22:35:10 +02:00
2024-09-09 22:35:10 +02:00
2024-08-06 16:56:48 +02:00
2024-08-06 16:56:48 +02:00
2024-10-22 07:37:54 +01:00
2024-11-04 14:46:04 +01:00
2024-11-04 14:46:04 +01:00
2024-11-04 14:46:04 +01:00
2024-11-04 14:46:04 +01:00
2024-08-18 22:52:54 -05:00
2024-08-18 22:52:54 -05:00