diff options
Diffstat (limited to 'crates/ra_ide_api/src/imp.rs')
-rw-r--r-- | crates/ra_ide_api/src/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/imp.rs b/crates/ra_ide_api/src/imp.rs index fa79908a1..ddd9354ec 100644 --- a/crates/ra_ide_api/src/imp.rs +++ b/crates/ra_ide_api/src/imp.rs | |||
@@ -153,7 +153,7 @@ impl db::RootDatabase { | |||
153 | source_binder::function_from_child_node(db, position.file_id, name_ref.syntax())?; | 153 | source_binder::function_from_child_node(db, position.file_id, name_ref.syntax())?; |
154 | let scope = descr.scopes(db); | 154 | let scope = descr.scopes(db); |
155 | let resolved = scope.resolve_local_name(name_ref)?; | 155 | let resolved = scope.resolve_local_name(name_ref)?; |
156 | let resolved = resolved.ptr().resolve(source_file); | 156 | let resolved = resolved.ptr().to_node(source_file); |
157 | let binding = find_node_at_offset::<ast::BindPat>(syntax, resolved.range().end())?; | 157 | let binding = find_node_at_offset::<ast::BindPat>(syntax, resolved.range().end())?; |
158 | Some((binding, descr)) | 158 | Some((binding, descr)) |
159 | } | 159 | } |