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 | ^^^^^^^^ ```
69 lines
1.8 KiB
Text
69 lines
1.8 KiB
Text
error: this item has comments with 4 forward slashes (`////`). These look like doc comments, but they aren't
|
|
--> tests/ui/four_forward_slashes.rs:12:1
|
|
|
|
|
LL | / //// whoops
|
|
LL | | fn a() {}
|
|
| |_^
|
|
|
|
|
= note: `-D clippy::four-forward-slashes` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::four_forward_slashes)]`
|
|
help: make this a doc comment by removing one `/`
|
|
|
|
|
LL + /// whoops
|
|
|
|
|
|
|
error: this item has comments with 4 forward slashes (`////`). These look like doc comments, but they aren't
|
|
--> tests/ui/four_forward_slashes.rs:15:1
|
|
|
|
|
LL | / //// whoops
|
|
LL | | #[allow(dead_code)]
|
|
LL | | fn b() {}
|
|
| |_^
|
|
|
|
|
help: make this a doc comment by removing one `/`
|
|
|
|
|
LL + /// whoops
|
|
|
|
|
|
|
error: this item has comments with 4 forward slashes (`////`). These look like doc comments, but they aren't
|
|
--> tests/ui/four_forward_slashes.rs:19:1
|
|
|
|
|
LL | / //// whoops
|
|
LL | | //// two borked comments!
|
|
LL | | #[track_caller]
|
|
LL | | fn c() {}
|
|
| |_^
|
|
|
|
|
help: turn these into doc comments by removing one `/`
|
|
|
|
|
LL + /// whoops
|
|
LL ~ /// two borked comments!
|
|
|
|
|
|
|
error: this item has comments with 4 forward slashes (`////`). These look like doc comments, but they aren't
|
|
--> tests/ui/four_forward_slashes.rs:27:1
|
|
|
|
|
LL | / //// between attributes
|
|
LL | | #[allow(dead_code)]
|
|
LL | | fn g() {}
|
|
| |_^
|
|
|
|
|
help: make this a doc comment by removing one `/`
|
|
|
|
|
LL + /// between attributes
|
|
|
|
|
|
|
error: this item has comments with 4 forward slashes (`////`). These look like doc comments, but they aren't
|
|
--> tests/ui/four_forward_slashes.rs:31:1
|
|
|
|
|
LL | / //// not very start of contents
|
|
LL | | fn h() {}
|
|
| |_^
|
|
|
|
|
help: make this a doc comment by removing one `/`
|
|
|
|
|
LL + /// not very start of contents
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|