Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/inlay_hints/chaining.rs')
| -rw-r--r-- | crates/ide/src/inlay_hints/chaining.rs | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/crates/ide/src/inlay_hints/chaining.rs b/crates/ide/src/inlay_hints/chaining.rs index e0045a53d7..66fb53eceb 100644 --- a/crates/ide/src/inlay_hints/chaining.rs +++ b/crates/ide/src/inlay_hints/chaining.rs @@ -408,21 +408,60 @@ fn main() { range: 174..241, kind: Chaining, label: [ - "impl Iterator<Item = ()>", + "impl ", + InlayHintLabelPart { + text: "Iterator", + linked_location: Some( + FileRange { + file_id: FileId( + 1, + ), + range: 2248..2256, + }, + ), + tooltip: "", + }, + "<Item = ()>", ], }, InlayHint { range: 174..224, kind: Chaining, label: [ - "impl Iterator<Item = ()>", + "impl ", + InlayHintLabelPart { + text: "Iterator", + linked_location: Some( + FileRange { + file_id: FileId( + 1, + ), + range: 2248..2256, + }, + ), + tooltip: "", + }, + "<Item = ()>", ], }, InlayHint { range: 174..206, kind: Chaining, label: [ - "impl Iterator<Item = ()>", + "impl ", + InlayHintLabelPart { + text: "Iterator", + linked_location: Some( + FileRange { + file_id: FileId( + 1, + ), + range: 2248..2256, + }, + ), + tooltip: "", + }, + "<Item = ()>", ], }, InlayHint { |