do not use associated types placeholder for inlay hint

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
Benjamin Coenen 2020-10-28 15:42:51 +01:00
parent 0aca7b78de
commit ec3638adb9
4 changed files with 17 additions and 8 deletions

View file

@ -332,7 +332,11 @@ impl HirDisplay for ApplicationTy {
let ret_display = if f.omit_verbose_types() {
ret.display_truncated(f.db, f.max_size)
} else {
ret.display(f.db)
if f.display_target.is_test() {
ret.display_test(f.db)
} else {
ret.display(f.db)
}
};
write!(f, " -> {}", ret_display)?;
}
@ -472,7 +476,11 @@ impl HirDisplay for ApplicationTy {
let ret_display = if f.omit_verbose_types() {
sig.ret().display_truncated(f.db, f.max_size)
} else {
sig.ret().display(f.db)
if f.display_target.is_test() {
sig.ret().display_test(f.db)
} else {
sig.ret().display(f.db)
}
};
write!(f, " -> {}", ret_display)?;
} else {