Split span_to_string into span_to_diagnostic/embeddable_string
This commit is contained in:
parent
0ac9ca4f88
commit
37dbe868c9
13 changed files with 60 additions and 24 deletions
|
@ -2365,7 +2365,10 @@ impl<'tcx> Debug for Rvalue<'tcx> {
|
|||
)
|
||||
} else {
|
||||
let span = tcx.hir().span(hir_id);
|
||||
format!("[closure@{}]", tcx.sess.source_map().span_to_string(span))
|
||||
format!(
|
||||
"[closure@{}]",
|
||||
tcx.sess.source_map().span_to_diagnostic_string(span)
|
||||
)
|
||||
};
|
||||
let mut struct_fmt = fmt.debug_struct(&name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue