diff options
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 30e959c04..4ff81af7f 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -180,6 +180,7 @@ impl CrateDefMap { | |||
180 | db: &impl PersistentHirDatabase, | 180 | db: &impl PersistentHirDatabase, |
181 | krate: Crate, | 181 | krate: Crate, |
182 | ) -> Arc<CrateDefMap> { | 182 | ) -> Arc<CrateDefMap> { |
183 | let start = std::time::Instant::now(); | ||
183 | let def_map = { | 184 | let def_map = { |
184 | let edition = krate.edition(db); | 185 | let edition = krate.edition(db); |
185 | let mut modules: Arena<ModuleId, ModuleData> = Arena::default(); | 186 | let mut modules: Arena<ModuleId, ModuleData> = Arena::default(); |
@@ -196,6 +197,7 @@ impl CrateDefMap { | |||
196 | } | 197 | } |
197 | }; | 198 | }; |
198 | let def_map = collector::collect_defs(db, def_map); | 199 | let def_map = collector::collect_defs(db, def_map); |
200 | log::info!("crate_def_map_query: {:?}", start.elapsed()); | ||
199 | Arc::new(def_map) | 201 | Arc::new(def_map) |
200 | } | 202 | } |
201 | 203 | ||