diff options
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index d361cf9e6..5ac878c79 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -59,6 +59,7 @@ use rustc_hash::FxHashMap; | |||
59 | use ra_arena::{Arena, RawId, impl_arena_id}; | 59 | use ra_arena::{Arena, RawId, impl_arena_id}; |
60 | use ra_db::{FileId, Edition}; | 60 | use ra_db::{FileId, Edition}; |
61 | use test_utils::tested_by; | 61 | use test_utils::tested_by; |
62 | use ra_prof::profile; | ||
62 | 63 | ||
63 | use crate::{ | 64 | use crate::{ |
64 | ModuleDef, Name, Crate, Module, Problem, | 65 | ModuleDef, Name, Crate, Module, Problem, |
@@ -197,7 +198,7 @@ enum ReachedFixedPoint { | |||
197 | 198 | ||
198 | impl CrateDefMap { | 199 | impl CrateDefMap { |
199 | pub(crate) fn crate_def_map_query(db: &impl DefDatabase, krate: Crate) -> Arc<CrateDefMap> { | 200 | pub(crate) fn crate_def_map_query(db: &impl DefDatabase, krate: Crate) -> Arc<CrateDefMap> { |
200 | let start = std::time::Instant::now(); | 201 | let _p = profile("crate_def_map_query"); |
201 | let def_map = { | 202 | let def_map = { |
202 | let edition = krate.edition(db); | 203 | let edition = krate.edition(db); |
203 | let mut modules: Arena<CrateModuleId, ModuleData> = Arena::default(); | 204 | let mut modules: Arena<CrateModuleId, ModuleData> = Arena::default(); |
@@ -216,7 +217,6 @@ impl CrateDefMap { | |||
216 | } | 217 | } |
217 | }; | 218 | }; |
218 | let def_map = collector::collect_defs(db, def_map); | 219 | let def_map = collector::collect_defs(db, def_map); |
219 | log::info!("crate_def_map_query: {:?}", start.elapsed()); | ||
220 | Arc::new(def_map) | 220 | Arc::new(def_map) |
221 | } | 221 | } |
222 | 222 | ||