diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/function.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs index d8dafb10e..8a2ab5714 100644 --- a/crates/ra_hir/src/code_model_impl/function.rs +++ b/crates/ra_hir/src/code_model_impl/function.rs | |||
@@ -9,7 +9,7 @@ use crate::{ | |||
9 | type_ref::{TypeRef, Mutability}, | 9 | type_ref::{TypeRef, Mutability}, |
10 | expr::Body, | 10 | expr::Body, |
11 | impl_block::ImplBlock, | 11 | impl_block::ImplBlock, |
12 | ids::FunctionLoc, | 12 | ids::ItemLoc, |
13 | }; | 13 | }; |
14 | 14 | ||
15 | pub use self::scope::{FnScopes, ScopesWithSyntaxMapping, ScopeEntryWithSyntax}; | 15 | pub use self::scope::{FnScopes, ScopesWithSyntaxMapping, ScopeEntryWithSyntax}; |
@@ -21,8 +21,8 @@ impl Function { | |||
21 | file_id: HirFileId, | 21 | file_id: HirFileId, |
22 | ast: &ast::FnDef, | 22 | ast: &ast::FnDef, |
23 | ) -> Function { | 23 | ) -> Function { |
24 | let loc: FunctionLoc = FunctionLoc::from_ast(db, module, file_id, ast); | 24 | let loc = ItemLoc::from_ast(db, module, file_id, ast); |
25 | let id = loc.id(db); | 25 | let id = db.as_ref().fns.loc2id(&loc); |
26 | Function { id } | 26 | Function { id } |
27 | } | 27 | } |
28 | 28 | ||