aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres/raw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/nameres/raw.rs')
-rw-r--r--crates/ra_hir_def/src/nameres/raw.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/nameres/raw.rs b/crates/ra_hir_def/src/nameres/raw.rs
index 1b83b2247..73dc08745 100644
--- a/crates/ra_hir_def/src/nameres/raw.rs
+++ b/crates/ra_hir_def/src/nameres/raw.rs
@@ -14,6 +14,7 @@ use hir_expand::{
14 name::{AsName, Name}, 14 name::{AsName, Name},
15}; 15};
16use ra_arena::{impl_arena_id, Arena, RawId}; 16use ra_arena::{impl_arena_id, Arena, RawId};
17use ra_prof::profile;
17use ra_syntax::{ 18use ra_syntax::{
18 ast::{self, AttrsOwner, NameOwner}, 19 ast::{self, AttrsOwner, NameOwner},
19 AstNode, 20 AstNode,
@@ -42,6 +43,7 @@ impl RawItems {
42 db: &(impl DefDatabase + AstDatabase), 43 db: &(impl DefDatabase + AstDatabase),
43 file_id: HirFileId, 44 file_id: HirFileId,
44 ) -> Arc<RawItems> { 45 ) -> Arc<RawItems> {
46 let _p = profile("raw_items_query");
45 let mut collector = RawItemsCollector { 47 let mut collector = RawItemsCollector {
46 raw_items: RawItems::default(), 48 raw_items: RawItems::default(),
47 source_ast_id_map: db.ast_id_map(file_id), 49 source_ast_id_map: db.ast_id_map(file_id),