Fix for #33559
This commit is contained in:
parent
175ecfefd5
commit
c1c1ad5ec5
1 changed files with 2 additions and 1 deletions
|
|
@ -367,7 +367,8 @@ impl EmitterWriter {
|
|||
let mut output_vec = vec![];
|
||||
|
||||
for span_label in msp.span_labels() {
|
||||
let mut snippet_data = snippet_data.clone();
|
||||
let mut snippet_data = SnippetData::new(self.cm.clone(),
|
||||
Some(span_label.span));
|
||||
|
||||
snippet_data.push(span_label.span,
|
||||
span_label.is_primary,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue