mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
replace trait by a bunch of functions
This commit is contained in:
parent
d26d0ada50
commit
835173d065
9 changed files with 227 additions and 330 deletions
|
@ -107,7 +107,7 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn
|
|||
let src = it.source(db);
|
||||
res.extend(hover_text(src.ast.doc_comment_text(), Some(macro_label(&src.ast))));
|
||||
}
|
||||
Some(FieldAccess(it)) => {
|
||||
Some(Field(it)) => {
|
||||
let src = it.source(db);
|
||||
if let hir::FieldSource::Named(it) = src.ast {
|
||||
res.extend(hover_text(it.doc_comment_text(), it.short_label()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue