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-05-04 11:30:38 +02:00
2024-04-16 15:19:12 +02:00
2024-02-22 16:04:04 +00:00
2024-10-30 14:01:37 -07:00
2024-02-22 16:04:04 +00: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-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-04-02 21:22:04 +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-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00: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-04-15 21:49:55 +02:00
2024-04-15 21:49:56 +02:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-05-01 16:45:27 +02:00
2024-05-01 16:45:27 +02:00
2024-10-15 13:28:39 +02:00
2024-10-15 13:28:39 +02:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-07-04 00:40:04 +00:00
2024-06-28 08:01:07 +08:00
2024-06-28 08:01:07 +08:00
2024-06-28 08:01:07 +08:00
2024-06-28 08:01:07 +08:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-01-13 12:46:58 -05:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-07-12 18:18:30 -07:00
2024-02-22 16:04:04 +00:00
2024-04-15 15:11:49 -07:00
2024-06-03 03:50:15 +02:00
2024-02-22 16:04:04 +00:00
2024-07-11 12:23:44 +10:00
2024-04-09 13:58:52 +00:00
2024-04-15 15:11:49 -07:00
2024-07-12 18:18:30 -07:00
2024-07-12 18:18:30 -07:00
2024-07-29 23:49:51 +00:00
2024-02-22 16:04:04 +00:00
2024-03-29 13:31:35 -07:00
2024-07-04 00:40:04 +00:00
2024-02-22 16:04:04 +00:00
2024-05-30 22:52:33 +02:00
2024-07-17 21:30:40 +00:00
2024-09-25 13:26:48 +02:00
2024-03-28 11:09:08 +01:00
2024-02-22 16:04:04 +00:00
2024-11-10 23:57:18 +01:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-07-22 22:51:53 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-03-07 06:27:09 +00:00
2024-03-07 06:27:09 +00:00
2024-02-22 16:04:04 +00: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-05-21 21:21:26 -07:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-09-09 22:35:10 +02:00
2024-04-13 19:32:39 -07:00
2024-07-11 12:23:44 +10:00
2024-06-09 10:34:54 -07:00
2024-07-11 12:23:44 +10:00
2024-06-09 10:34:54 -07:00
2024-08-06 16:56:48 +02:00
2024-08-06 16:56:48 +02:00
2024-07-11 12:23:44 +10:00
2024-06-09 10:34:54 -07:00
2024-10-22 07:37:54 +01:00
2024-02-22 16:04:04 +00: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-02-22 16:04:04 +00:00
2024-07-11 12:23:44 +10:00
2024-07-21 22:34:35 -04:00
2024-07-11 11:00:15 +00:00
2024-07-11 11:00:15 +00:00
2024-03-29 13:31:35 -07:00
2024-08-18 22:52:54 -05:00
2024-08-18 22:52:54 -05:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00