diff options
author | Aleksey Kladov <[email protected]> | 2019-01-24 12:28:50 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-24 12:28:50 +0000 |
commit | ec7ed054e06cb2e23fd3911932766b32014c8fa1 (patch) | |
tree | c06ed85f44afc261c483ff7b87e1a7aa33c198a1 /crates/ra_hir/src/query_definitions.rs | |
parent | f1959bbae0cf2f99e63d074278cec165c274b4e5 (diff) |
Functions use new id scheme
Diffstat (limited to 'crates/ra_hir/src/query_definitions.rs')
-rw-r--r-- | crates/ra_hir/src/query_definitions.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir/src/query_definitions.rs b/crates/ra_hir/src/query_definitions.rs index a8ed887b3..cf8c7e435 100644 --- a/crates/ra_hir/src/query_definitions.rs +++ b/crates/ra_hir/src/query_definitions.rs | |||
@@ -10,14 +10,14 @@ use ra_syntax::{ | |||
10 | use ra_db::{CrateId}; | 10 | use ra_db::{CrateId}; |
11 | 11 | ||
12 | use crate::{ | 12 | use crate::{ |
13 | SourceFileItems, SourceItemId, DefId, HirFileId, | 13 | SourceFileItems, SourceItemId, HirFileId, |
14 | FnScopes, Module, | 14 | Function, FnScopes, Module, |
15 | db::HirDatabase, | 15 | db::HirDatabase, |
16 | nameres::{ItemMap, Resolver}, | 16 | nameres::{ItemMap, Resolver}, |
17 | }; | 17 | }; |
18 | 18 | ||
19 | pub(super) fn fn_scopes(db: &impl HirDatabase, def_id: DefId) -> Arc<FnScopes> { | 19 | pub(super) fn fn_scopes(db: &impl HirDatabase, func: Function) -> Arc<FnScopes> { |
20 | let body = db.body_hir(def_id); | 20 | let body = db.body_hir(func); |
21 | let res = FnScopes::new(body); | 21 | let res = FnScopes::new(body); |
22 | Arc::new(res) | 22 | Arc::new(res) |
23 | } | 23 | } |