Rename span_to_string to span_to_diagnostic_string

This commit is contained in:
Andy Wang 2021-05-04 12:06:02 +01:00 committed by Caleb Cartwright
parent 2a3635d5d1
commit 8526acee21

View File

@ -191,7 +191,7 @@ impl ParseSess {
}
pub(crate) fn span_to_debug_info(&self, span: Span) -> String {
self.parse_sess.source_map().span_to_string(span)
self.parse_sess.source_map().span_to_diagnostic_string(span)
}
pub(crate) fn inner(&self) -> &RawParseSess {