diff options
Diffstat (limited to 'crates/ra_ide_api/src/goto_definition.rs')
-rw-r--r-- | crates/ra_ide_api/src/goto_definition.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/goto_definition.rs b/crates/ra_ide_api/src/goto_definition.rs index 681f36623..69f2d2bf6 100644 --- a/crates/ra_ide_api/src/goto_definition.rs +++ b/crates/ra_ide_api/src/goto_definition.rs | |||
@@ -118,8 +118,7 @@ pub(crate) fn reference_definition( | |||
118 | } | 118 | } |
119 | } | 119 | } |
120 | // If that fails try the index based approach. | 120 | // If that fails try the index based approach. |
121 | let navs = db | 121 | let navs = crate::symbol_index::index_resolve(db, name_ref) |
122 | .index_resolve(name_ref) | ||
123 | .into_iter() | 122 | .into_iter() |
124 | .map(NavigationTarget::from_symbol) | 123 | .map(NavigationTarget::from_symbol) |
125 | .collect(); | 124 | .collect(); |