about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-07 01:19:32 +0200
committerGitHub <noreply@github.com>2022-08-07 01:19:32 +0200
commitaaa054e53c4d43cf047c1b1eeadaedb0eb5a212c (patch)
tree42546bb97efcb3450158b8843b7ee45cc8ef6343 /compiler/rustc_errors/src
parent44bd81da681f1920099cb4481acf1a96c25318f7 (diff)
parent754b52669ff505b376e0d00b7ba9a0c18db535d1 (diff)
downloadrust-aaa054e53c4d43cf047c1b1eeadaedb0eb5a212c.tar.gz
rust-aaa054e53c4d43cf047c1b1eeadaedb0eb5a212c.zip
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.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs b/compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs
index 0fcd61d1e58..3df562c7eda 100644
--- a/compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs
+++ b/compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs
@@ -183,7 +183,11 @@ impl AnnotateSnippetEmitterWriter {
                     annotation_type: annotation_type_for_level(*level),
                 }),
                 footer: vec![],
-                opt: FormatOptions { color: true, anonymized_line_numbers: self.ui_testing },
+                opt: FormatOptions {
+                    color: true,
+                    anonymized_line_numbers: self.ui_testing,
+                    margin: None,
+                },
                 slices: annotated_files
                     .iter()
                     .map(|(source, line_index, annotations)| {