diff options
| author | Andy Wang <cbeuw.andy@gmail.com> | 2021-05-03 01:14:25 +0100 |
|---|---|---|
| committer | Andy Wang <cbeuw.andy@gmail.com> | 2021-05-11 00:04:12 +0100 |
| commit | 37dbe868c92b16211ef2a670f9c9f457515f857b (patch) | |
| tree | 4749c549697804ee5b7e55f5ee560f07dd8c2a6e /compiler/rustc_span/src/source_map | |
| parent | 0ac9ca4f88c03e6fc507ab8937573dca1ccfd2ed (diff) | |
Split span_to_string into span_to_diagnostic/embeddable_string
Diffstat (limited to 'compiler/rustc_span/src/source_map')
| -rw-r--r-- | compiler/rustc_span/src/source_map/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |
