Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/inlay_hints/bind_pat.rs')
| -rw-r--r-- | crates/ide/src/inlay_hints/bind_pat.rs | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/crates/ide/src/inlay_hints/bind_pat.rs b/crates/ide/src/inlay_hints/bind_pat.rs index da44d95297..f5b5c44737 100644 --- a/crates/ide/src/inlay_hints/bind_pat.rs +++ b/crates/ide/src/inlay_hints/bind_pat.rs @@ -330,7 +330,20 @@ fn main(a: SliceIter<'_, Container>) { ), tooltip: "", }, - "<Item = impl ", + "<", + InlayHintLabelPart { + text: "Item", + linked_location: Some( + FileRange { + file_id: FileId( + 1, + ), + range: 2643..2647, + }, + ), + tooltip: "", + }, + " = impl ", InlayHintLabelPart { text: "Iterator", linked_location: Some( @@ -343,7 +356,20 @@ fn main(a: SliceIter<'_, Container>) { ), tooltip: "", }, - "<Item = &&str>>", + "<", + InlayHintLabelPart { + text: "Item", + linked_location: Some( + FileRange { + file_id: FileId( + 1, + ), + range: 2643..2647, + }, + ), + tooltip: "", + }, + " = &&str>>", ], }, InlayHint { |