rust/src/tools
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
..
build_helper
build-manifest Address review comments on wasm32v1-none target 2024-10-22 23:04:44 -07:00
bump-stage0
cargo@cf53cc54bb
cargotest
clippy Add Unicode block-drawing compiler output support 2024-11-10 23:57:18 +01:00
collect-license-metadata
compiletest Rollup merge of #131930 - clubby789:revision-cfg-collide, r=jieyouxu 2024-10-24 14:19:56 +11:00
coverage-dump
enzyme@2fe5164a24
error_index_generator
generate-copyright
generate-windows-sys
html-checker
jsondocck
jsondoclint
libcxx-version
linkchecker
lint-docs
lld-wrapper
llvm-bitcode-linker
miri
miropt-test-tools
nix-dev-shell
opt-dist
remote-test-client
remote-test-server
replace-version-placeholder
rls
run-make-support
rust-analyzer Replace some LayoutError variants with the rustc_abi errors 2024-10-22 10:19:25 +03:00
rust-installer
rustbook
rustc-perf@d5055e7804
rustc-perf-wrapper
rustdoc
rustdoc-gui
rustdoc-gui-test
rustdoc-js
rustdoc-themes
rustfmt
suggest-tests
tidy Move tests 2024-10-22 00:03:09 +00:00
tier-check
unicode-table-generator
unstable-book-gen
wasm-component-ld
x
cherry-pick.sh
publish_toolstate.py