From 37dbe868c92b16211ef2a670f9c9f457515f857b Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Mon, 3 May 2021 01:14:25 +0100 Subject: Split span_to_string into span_to_diagnostic/embeddable_string --- compiler/rustc_span/src/source_map/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_span/src/source_map') diff --git a/compiler/rustc_span/src/source_map/tests.rs b/compiler/rustc_span/src/source_map/tests.rs index ee87ef0b5e5..f13979941ab 100644 --- a/compiler/rustc_span/src/source_map/tests.rs +++ b/compiler/rustc_span/src/source_map/tests.rs @@ -193,7 +193,7 @@ fn t8() { fn t9() { let sm = init_source_map(); let span = Span::with_root_ctxt(BytePos(12), BytePos(23)); - let sstr = sm.span_to_string(span); + let sstr = sm.span_to_diagnostic_string(span); assert_eq!(sstr, "blork.rs:2:1: 2:12"); } -- cgit 1.4.1-3-g733a5