Skip to content

Commit d5b1a0c

Browse files
committed
Adapt Miri to the overhauled filename handling
And use the diagnostic method for diagnostic paths.
1 parent 799eecf commit d5b1a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ pub fn report_msg<'tcx>(
627627
err.subdiagnostic(frame_info.as_note(machine.tcx));
628628
} else {
629629
let sm = sess.source_map();
630-
let span = sm.span_to_embeddable_string(frame_info.span);
630+
let span = sm.span_to_diagnostic_string(frame_info.span);
631631
err.note(format!("{frame_info} at {span}"));
632632
}
633633
}

0 commit comments

Comments
 (0)