diff options
Diffstat (limited to 'crates/ra_ide_api/src/hover.rs')
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs index ee0f2dde8..4dd3c1b9f 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs | |||
@@ -96,8 +96,8 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn | |||
96 | 96 | ||
97 | match classify_name_ref(db, &analyzer, name_ref) { | 97 | match classify_name_ref(db, &analyzer, name_ref) { |
98 | Some(Method(it)) => { | 98 | Some(Method(it)) => { |
99 | let it = it.source(db).1; | 99 | let src = it.source(db); |
100 | res.extend(hover_text(it.doc_comment_text(), it.short_label())); | 100 | res.extend(hover_text(src.ast.doc_comment_text(), src.ast.short_label())); |
101 | } | 101 | } |
102 | Some(Macro(it)) => { | 102 | Some(Macro(it)) => { |
103 | let it = it.source(db).1; | 103 | let it = it.source(db).1; |
@@ -111,8 +111,8 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn | |||
111 | } | 111 | } |
112 | Some(AssocItem(it)) => match it { | 112 | Some(AssocItem(it)) => match it { |
113 | hir::ImplItem::Method(it) => { | 113 | hir::ImplItem::Method(it) => { |
114 | let it = it.source(db).1; | 114 | let src = it.source(db); |
115 | res.extend(hover_text(it.doc_comment_text(), it.short_label())) | 115 | res.extend(hover_text(src.ast.doc_comment_text(), src.ast.short_label())) |
116 | } | 116 | } |
117 | hir::ImplItem::Const(it) => { | 117 | hir::ImplItem::Const(it) => { |
118 | let it = it.source(db).1; | 118 | let it = it.source(db).1; |
@@ -132,8 +132,8 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn | |||
132 | } | 132 | } |
133 | } | 133 | } |
134 | hir::ModuleDef::Function(it) => { | 134 | hir::ModuleDef::Function(it) => { |
135 | let it = it.source(db).1; | 135 | let src = it.source(db); |
136 | res.extend(hover_text(it.doc_comment_text(), it.short_label())) | 136 | res.extend(hover_text(src.ast.doc_comment_text(), src.ast.short_label())) |
137 | } | 137 | } |
138 | hir::ModuleDef::Struct(it) => { | 138 | hir::ModuleDef::Struct(it) => { |
139 | let src = it.source(db); | 139 | let src = it.source(db); |