From b1d5817dd18b7b5fc102a63b084b1ee7ff4f9996 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Apr 2020 23:40:41 +0200 Subject: Convert code to text-size --- crates/ra_hir_ty/src/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir_ty/src/tests.rs') diff --git a/crates/ra_hir_ty/src/tests.rs b/crates/ra_hir_ty/src/tests.rs index 846005baa..b6a96bb5c 100644 --- a/crates/ra_hir_ty/src/tests.rs +++ b/crates/ra_hir_ty/src/tests.rs @@ -117,7 +117,7 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String { let macro_prefix = if node.file_id != file_id.into() { "!" } else { "" }; format_to!( buf, - "{}{} '{}': {}\n", + "{}{:?} '{}': {}\n", macro_prefix, range, ellipsize(text, 15), @@ -134,7 +134,7 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String { let macro_prefix = if src_ptr.file_id != file_id.into() { "!" } else { "" }; format_to!( buf, - "{}{}: expected {}, got {}\n", + "{}{:?}: expected {}, got {}\n", macro_prefix, range, mismatch.expected.display(&db), -- cgit v1.2.3