diff options
Diffstat (limited to 'crates/ra_hir_def/src/item_tree.rs')
-rw-r--r-- | crates/ra_hir_def/src/item_tree.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/item_tree.rs b/crates/ra_hir_def/src/item_tree.rs index a67e75dac..104966c7f 100644 --- a/crates/ra_hir_def/src/item_tree.rs +++ b/crates/ra_hir_def/src/item_tree.rs | |||
@@ -13,6 +13,7 @@ use std::{ | |||
13 | sync::Arc, | 13 | sync::Arc, |
14 | }; | 14 | }; |
15 | 15 | ||
16 | use arena::{Arena, Idx, RawId}; | ||
16 | use ast::{AstNode, AttrsOwner, NameOwner, StructKind}; | 17 | use ast::{AstNode, AttrsOwner, NameOwner, StructKind}; |
17 | use either::Either; | 18 | use either::Either; |
18 | use hir_expand::{ | 19 | use hir_expand::{ |
@@ -21,7 +22,6 @@ use hir_expand::{ | |||
21 | name::{name, AsName, Name}, | 22 | name::{name, AsName, Name}, |
22 | HirFileId, InFile, | 23 | HirFileId, InFile, |
23 | }; | 24 | }; |
24 | use ra_arena::{Arena, Idx, RawId}; | ||
25 | use ra_syntax::{ast, match_ast}; | 25 | use ra_syntax::{ast, match_ast}; |
26 | use rustc_hash::FxHashMap; | 26 | use rustc_hash::FxHashMap; |
27 | use smallvec::SmallVec; | 27 | use smallvec::SmallVec; |
@@ -77,7 +77,7 @@ pub struct ItemTree { | |||
77 | 77 | ||
78 | impl ItemTree { | 78 | impl ItemTree { |
79 | pub fn item_tree_query(db: &dyn DefDatabase, file_id: HirFileId) -> Arc<ItemTree> { | 79 | pub fn item_tree_query(db: &dyn DefDatabase, file_id: HirFileId) -> Arc<ItemTree> { |
80 | let _p = ra_prof::profile("item_tree_query").detail(|| format!("{:?}", file_id)); | 80 | let _p = profile::span("item_tree_query").detail(|| format!("{:?}", file_id)); |
81 | let syntax = if let Some(node) = db.parse_or_expand(file_id) { | 81 | let syntax = if let Some(node) = db.parse_or_expand(file_id) { |
82 | node | 82 | node |
83 | } else { | 83 | } else { |