Split span_to_string into span_to_diagnostic/embeddable_string

This commit is contained in:
Andy Wang
2021-05-03 01:14:25 +01:00
parent 0ac9ca4f88
commit 37dbe868c9
13 changed files with 60 additions and 24 deletions

View File

@@ -262,7 +262,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
span,
"inconsistent DepNode at `{:?}` for `{}`: \
current_dep_node_owner={} ({:?}), hir_id.owner={} ({:?})",
self.source_map.span_to_string(span),
self.source_map.span_to_diagnostic_string(span),
node_str,
self.definitions
.def_path(self.current_dep_node_owner)