Skip to content

Commit aaa054e

Browse files
authored
Rollup merge of #100071 - klensy:annotate-snippets-bump, r=Mark-Simulacrum
deps: dedupe `annotate-snippets` crate versions Dedupes `annotate-snippets` crate versions (https://github.com/rust-lang/annotate-snippets-rs/blob/0.9.1/CHANGELOG.md). Should work, but there is not a lot of tests. Looks like switching to that crate a bit stalled.
2 parents 44bd81d + 754b526 commit aaa054e

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

Cargo.lock

+3-9
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ dependencies = [
8282
"url 2.2.2",
8383
]
8484

85-
[[package]]
86-
name = "annotate-snippets"
87-
version = "0.8.0"
88-
source = "registry+https://github.com/rust-lang/crates.io-index"
89-
checksum = "d78ea013094e5ea606b1c05fe35f1dd7ea1eb1ea259908d040b25bd5ec677ee5"
90-
9185
[[package]]
9286
name = "annotate-snippets"
9387
version = "0.9.1"
@@ -3862,7 +3856,7 @@ dependencies = [
38623856
name = "rustc_errors"
38633857
version = "0.0.0"
38643858
dependencies = [
3865-
"annotate-snippets 0.8.0",
3859+
"annotate-snippets",
38663860
"atty",
38673861
"rustc_data_structures",
38683862
"rustc_error_messages",
@@ -4114,7 +4108,7 @@ dependencies = [
41144108
name = "rustc_macros"
41154109
version = "0.1.0"
41164110
dependencies = [
4117-
"annotate-snippets 0.8.0",
4111+
"annotate-snippets",
41184112
"fluent-bundle",
41194113
"fluent-syntax",
41204114
"proc-macro2",
@@ -4729,7 +4723,7 @@ dependencies = [
47294723
name = "rustfmt-nightly"
47304724
version = "1.5.1"
47314725
dependencies = [
4732-
"annotate-snippets 0.9.1",
4726+
"annotate-snippets",
47334727
"anyhow",
47344728
"bytecount",
47354729
"cargo_metadata 0.14.0",

compiler/rustc_errors/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rustc_lint_defs = { path = "../rustc_lint_defs" }
1818
unicode-width = "0.1.4"
1919
atty = "0.2"
2020
termcolor = "1.0"
21-
annotate-snippets = "0.8.0"
21+
annotate-snippets = "0.9"
2222
termize = "0.1.1"
2323
serde = { version = "1.0.125", features = ["derive"] }
2424
serde_json = "1.0.59"

compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ impl AnnotateSnippetEmitterWriter {
183183
annotation_type: annotation_type_for_level(*level),
184184
}),
185185
footer: vec![],
186-
opt: FormatOptions { color: true, anonymized_line_numbers: self.ui_testing },
186+
opt: FormatOptions {
187+
color: true,
188+
anonymized_line_numbers: self.ui_testing,
189+
margin: None,
190+
},
187191
slices: annotated_files
188192
.iter()
189193
.map(|(source, line_index, annotations)| {

compiler/rustc_macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
proc-macro = true
88

99
[dependencies]
10-
annotate-snippets = "0.8.0"
10+
annotate-snippets = "0.9"
1111
fluent-bundle = "0.15.2"
1212
fluent-syntax = "0.11"
1313
synstructure = "0.12.1"

0 commit comments

Comments
 (0)