Skip to content

Commit c1c1ad5

Browse files
author
Jonathan Turner
committed
Fix for #33559
1 parent 175ecfe commit c1c1ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libsyntax/errors/emitter.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ impl EmitterWriter {
367367
let mut output_vec = vec![];
368368

369369
for span_label in msp.span_labels() {
370-
let mut snippet_data = snippet_data.clone();
370+
let mut snippet_data = SnippetData::new(self.cm.clone(),
371+
Some(span_label.span));
371372

372373
snippet_data.push(span_label.span,
373374
span_label.is_primary,

0 commit comments

Comments
 (0)