aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/display.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/display.rs')
-rw-r--r--crates/hir_ty/src/display.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs
index 0bf181a92..822ef4477 100644
--- a/crates/hir_ty/src/display.rs
+++ b/crates/hir_ty/src/display.rs
@@ -332,7 +332,11 @@ impl HirDisplay for ApplicationTy {
332 let ret_display = if f.omit_verbose_types() { 332 let ret_display = if f.omit_verbose_types() {
333 ret.display_truncated(f.db, f.max_size) 333 ret.display_truncated(f.db, f.max_size)
334 } else { 334 } else {
335 ret.display(f.db) 335 if f.display_target.is_test() {
336 ret.display_test(f.db)
337 } else {
338 ret.display(f.db)
339 }
336 }; 340 };
337 write!(f, " -> {}", ret_display)?; 341 write!(f, " -> {}", ret_display)?;
338 } 342 }
@@ -472,7 +476,11 @@ impl HirDisplay for ApplicationTy {
472 let ret_display = if f.omit_verbose_types() { 476 let ret_display = if f.omit_verbose_types() {
473 sig.ret().display_truncated(f.db, f.max_size) 477 sig.ret().display_truncated(f.db, f.max_size)
474 } else { 478 } else {
475 sig.ret().display(f.db) 479 if f.display_target.is_test() {
480 sig.ret().display_test(f.db)
481 } else {
482 sig.ret().display(f.db)
483 }
476 }; 484 };
477 write!(f, " -> {}", ret_display)?; 485 write!(f, " -> {}", ret_display)?;
478 } else { 486 } else {