Skip to content

Commit 6d62ae3

Browse files
authored
Rollup merge of rust-lang#146731 - Muscraft:svg-test-terminal-url, r=jdonszelmann
test: Use SVG for terminal url test I came across the test for `-Zterminal-urls` and found its output a bit hard to read. So, I decided to switch it to an SVG test, as I found it easier to differentiate the link and link text. Note: `anstyle-svg` needed to be upgraded to at least `0.1.8` to support links in SVGs, so I went ahead and upgraded it to the latest version (`0.1.11`).
2 parents 831e40e + 6375083 commit 6d62ae3

15 files changed

+69
-32
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ dependencies = [
128128

129129
[[package]]
130130
name = "anstyle-svg"
131-
version = "0.1.10"
131+
version = "0.1.11"
132132
source = "registry+https://github.com/rust-lang/crates.io-index"
133-
checksum = "dc03a770ef506fe1396c0e476120ac0e6523cf14b74218dd5f18cd6833326fa9"
133+
checksum = "26b9ec8c976eada1b0f9747a3d7cc4eae3bef10613e443746e7487f26c872fde"
134134
dependencies = [
135135
"anstyle",
136136
"anstyle-lossy",
@@ -674,7 +674,7 @@ checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
674674
dependencies = [
675675
"serde",
676676
"termcolor",
677-
"unicode-width 0.1.14",
677+
"unicode-width 0.2.1",
678678
]
679679

680680
[[package]]

src/tools/compiletest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ path = "src/bin/main.rs"
1212

1313
[dependencies]
1414
# tidy-alphabetical-start
15-
anstyle-svg = "0.1.3"
15+
anstyle-svg = "0.1.11"
1616
build_helper = { path = "../../build_helper" }
1717
camino = "1"
1818
colored = "2"

tests/ui/codemap_tests/huge_multispan_highlight.ascii.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/ui/codemap_tests/huge_multispan_highlight.unicode.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/ui/diagnostic-flags/colored-session-opt-error.svg

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ compile-flags: -Zterminal-urls=yes
1+
//@ compile-flags: -Zterminal-urls=yes --error-format=human --color=always
22
fn main() {
3-
let () = 4; //~ ERROR
3+
let () = 4;
44
}

tests/ui/diagnostic-flags/terminal_urls.stderr

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Loading

tests/ui/error-emitter/E0308-clarification.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/error-emitter/highlighting.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)