mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
1d78004575
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 | ^^^^^^^^ ``` |
||
---|---|---|
.. | ||
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 | ||
huge_multispan_highlight.rs | ||
huge_multispan_highlight.unicode.svg | ||
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 | ||
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 | ||
unicode.rs |