From b5394da406e8ae989b53f73c0e7b3d941c4437c3 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 9 Feb 2025 12:46:36 -0800 Subject: [PATCH] Update annotate-snippets from 0.11.4 to 0.11.5 Changelog: https://github.com/rust-lang/annotate-snippets-rs/blob/master/CHANGELOG.md#0115---2024-12-09 Looks to have some minor rendering differences. --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- tests/testsuite/alt_registry.rs | 3 +-- .../cargo_add/invalid_manifest/stderr.term.svg | 6 +++--- tests/testsuite/lints/error/stderr.term.svg | 8 ++++---- tests/testsuite/lints/inherited/stderr.term.svg | 14 +++++++------- tests/testsuite/lints/warning/stderr.term.svg | 8 ++++---- 7 files changed, 23 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ce4e6a06b..24c34d8dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,12 +43,12 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" [[package]] name = "annotate-snippets" -version = "0.11.4" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24e35ed54e5ea7997c14ed4c70ba043478db1112e98263b3b035907aa197d991" +checksum = "710e8eae58854cdc1790fcb56cca04d712a17be849eeb81da2a724bf4bae2bc4" dependencies = [ "anstyle", - "unicode-width 0.1.13", + "unicode-width 0.2.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index baa81833e..ab7dc4c9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ homepage = "https://github.com/rust-lang/cargo" repository = "https://github.com/rust-lang/cargo" [workspace.dependencies] -annotate-snippets = "0.11.4" +annotate-snippets = "0.11.5" anstream = "0.6.15" anstyle = "1.0.8" anyhow = "1.0.86" diff --git a/tests/testsuite/alt_registry.rs b/tests/testsuite/alt_registry.rs index e10307c62..b281dfc8d 100644 --- a/tests/testsuite/alt_registry.rs +++ b/tests/testsuite/alt_registry.rs @@ -747,8 +747,7 @@ fn bad_registry_name() { --> Cargo.toml:8:17 | - 8 | [dependencies.bar] - | _________________^ + 8 | / [dependencies.bar] 9 | | version = "0.0.1" 10 | | registry = "bad name" | |_____________________________________^ diff --git a/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg b/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg index b3ca44189..0ebf039fc 100644 --- a/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg +++ b/tests/testsuite/cargo_add/invalid_manifest/stderr.term.svg @@ -25,13 +25,13 @@ --> Cargo.toml:9:7 - | + | 9 | key = invalid-value - | ^ + | ^ - | + | diff --git a/tests/testsuite/lints/error/stderr.term.svg b/tests/testsuite/lints/error/stderr.term.svg index 1dba018ce..ed03c725e 100644 --- a/tests/testsuite/lints/error/stderr.term.svg +++ b/tests/testsuite/lints/error/stderr.term.svg @@ -24,15 +24,15 @@ --> Cargo.toml:9:1 - | + | 9 | im-a-teapot = true - | ^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^^ - | + | - = note: `cargo::im_a_teapot` is set to `deny` in `[lints]` + = note: `cargo::im_a_teapot` is set to `deny` in `[lints]` diff --git a/tests/testsuite/lints/inherited/stderr.term.svg b/tests/testsuite/lints/inherited/stderr.term.svg index a37bba4c1..9ef4f0c5b 100644 --- a/tests/testsuite/lints/inherited/stderr.term.svg +++ b/tests/testsuite/lints/inherited/stderr.term.svg @@ -26,27 +26,27 @@ --> Cargo.toml:6:1 - | + | 6 | im_a_teapot = { level = "warn", priority = 10 } - | ^^^^^^^^^^^ this is behind `test-dummy-unstable`, which is not enabled + | ^^^^^^^^^^^ this is behind `test-dummy-unstable`, which is not enabled - | + | note: `cargo::im_a_teapot` was inherited --> foo/Cargo.toml:9:1 - | + | 9 | workspace = true - | ---------------- + | ---------------- - | + | - = help: consider adding `cargo-features = ["test-dummy-unstable"]` to the top of the manifest + = help: consider adding `cargo-features = ["test-dummy-unstable"]` to the top of the manifest error: encountered 1 errors(s) while verifying lints diff --git a/tests/testsuite/lints/warning/stderr.term.svg b/tests/testsuite/lints/warning/stderr.term.svg index 438823102..4ab424afa 100644 --- a/tests/testsuite/lints/warning/stderr.term.svg +++ b/tests/testsuite/lints/warning/stderr.term.svg @@ -25,15 +25,15 @@ --> Cargo.toml:9:1 - | + | 9 | im-a-teapot = true - | ------------------ + | ------------------ - | + | - = note: `cargo::im_a_teapot` is set to `warn` in `[lints]` + = note: `cargo::im_a_teapot` is set to `warn` in `[lints]` Checking foo v0.0.1 ([ROOT]/foo)