mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
remove inherent source impls
This commit is contained in:
parent
dd63f17027
commit
c4512fadb1
15 changed files with 22 additions and 67 deletions
|
@ -4,7 +4,7 @@ use ra_syntax::{
|
|||
ast::{self, DocCommentsOwner},
|
||||
algo::{find_covering_element, find_node_at_offset, ancestors_at_offset, visit::{visitor, Visitor}},
|
||||
};
|
||||
use hir::HirDisplay;
|
||||
use hir::{HirDisplay, HasSource};
|
||||
|
||||
use crate::{
|
||||
db::RootDatabase,
|
||||
|
@ -226,7 +226,7 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn
|
|||
|
||||
fn from_def_source<A, D>(db: &RootDatabase, def: D) -> Option<String>
|
||||
where
|
||||
D: hir::HasSource<Ast = TreeArc<A>>,
|
||||
D: HasSource<Ast = TreeArc<A>>,
|
||||
A: ast::DocCommentsOwner + ast::NameOwner + ShortLabel,
|
||||
{
|
||||
let src = def.source(db);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue