diff options
Diffstat (limited to 'crates/ra_ide/src/goto_definition.rs')
-rw-r--r-- | crates/ra_ide/src/goto_definition.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ra_ide/src/goto_definition.rs b/crates/ra_ide/src/goto_definition.rs index 6f0dbe065..4a8107d60 100644 --- a/crates/ra_ide/src/goto_definition.rs +++ b/crates/ra_ide/src/goto_definition.rs | |||
@@ -1,7 +1,10 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! FIXME: write short doc here |
2 | 2 | ||
3 | use hir::Semantics; | 3 | use hir::Semantics; |
4 | use ra_ide_db::{defs::classify_name, symbol_index, RootDatabase}; | 4 | use ra_ide_db::{ |
5 | defs::{classify_name, classify_name_ref}, | ||
6 | symbol_index, RootDatabase, | ||
7 | }; | ||
5 | use ra_syntax::{ | 8 | use ra_syntax::{ |
6 | ast::{self}, | 9 | ast::{self}, |
7 | match_ast, AstNode, | 10 | match_ast, AstNode, |
@@ -11,7 +14,6 @@ use ra_syntax::{ | |||
11 | 14 | ||
12 | use crate::{ | 15 | use crate::{ |
13 | display::{ToNav, TryToNav}, | 16 | display::{ToNav, TryToNav}, |
14 | references::classify_name_ref, | ||
15 | FilePosition, NavigationTarget, RangeInfo, | 17 | FilePosition, NavigationTarget, RangeInfo, |
16 | }; | 18 | }; |
17 | 19 | ||
@@ -94,7 +96,7 @@ pub(crate) fn reference_definition( | |||
94 | 96 | ||
95 | #[cfg(test)] | 97 | #[cfg(test)] |
96 | mod tests { | 98 | mod tests { |
97 | use test_utils::{assert_eq_text, covers}; | 99 | use test_utils::assert_eq_text; |
98 | 100 | ||
99 | use crate::mock_analysis::analysis_and_position; | 101 | use crate::mock_analysis::analysis_and_position; |
100 | 102 | ||