Skip to content

Commit c8dfbf5

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

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
@@ -616,7 +616,7 @@ pub fn report_msg<'tcx>(
616616
err.subdiagnostic(frame_info.as_note(machine.tcx));
617617
} else {
618618
let sm = sess.source_map();
619-
let span = sm.span_to_embeddable_string(frame_info.span);
619+
let span = sm.span_to_diagnostic_string(frame_info.span);
620620
err.note(format!("{frame_info} at {span}"));
621621
}
622622
}

0 commit comments

Comments
 (0)