Skip to content

Commit 754b526

Browse files
committed
dedupe 'annotate-snippets' crate versions
1 parent 06f4950 commit 754b526

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

Cargo.lock

Lines changed: 3 additions & 9 deletions
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"
@@ -3861,7 +3855,7 @@ dependencies = [
38613855
name = "rustc_errors"
38623856
version = "0.0.0"
38633857
dependencies = [
3864-
"annotate-snippets 0.8.0",
3858+
"annotate-snippets",
38653859
"atty",
38663860
"rustc_data_structures",
38673861
"rustc_error_messages",
@@ -4113,7 +4107,7 @@ dependencies = [
41134107
name = "rustc_macros"
41144108
version = "0.1.0"
41154109
dependencies = [
4116-
"annotate-snippets 0.8.0",
4110+
"annotate-snippets",
41174111
"fluent-bundle",
41184112
"fluent-syntax",
41194113
"proc-macro2",
@@ -4713,7 +4707,7 @@ dependencies = [
47134707
name = "rustfmt-nightly"
47144708
version = "1.5.1"
47154709
dependencies = [
4716-
"annotate-snippets 0.9.1",
4710+
"annotate-snippets",
47174711
"anyhow",
47184712
"bytecount",
47194713
"cargo_metadata 0.14.0",

compiler/rustc_errors/Cargo.toml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)