mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
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:
parent
0aca7b78de
commit
ec3638adb9
4 changed files with 17 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue