diff options
Diffstat (limited to 'crates/ra_hir_def/src/nameres.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 3d9b55a73..dc239997f 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs | |||
@@ -56,10 +56,9 @@ mod tests; | |||
56 | 56 | ||
57 | use std::sync::Arc; | 57 | use std::sync::Arc; |
58 | 58 | ||
59 | use arena::Arena; | ||
59 | use hir_expand::{diagnostics::DiagnosticSink, name::Name, InFile}; | 60 | use hir_expand::{diagnostics::DiagnosticSink, name::Name, InFile}; |
60 | use ra_arena::Arena; | ||
61 | use ra_db::{CrateId, Edition, FileId}; | 61 | use ra_db::{CrateId, Edition, FileId}; |
62 | use ra_prof::profile; | ||
63 | use ra_syntax::ast; | 62 | use ra_syntax::ast; |
64 | use rustc_hash::FxHashMap; | 63 | use rustc_hash::FxHashMap; |
65 | use stdx::format_to; | 64 | use stdx::format_to; |
@@ -172,7 +171,7 @@ pub struct ModuleData { | |||
172 | 171 | ||
173 | impl CrateDefMap { | 172 | impl CrateDefMap { |
174 | pub(crate) fn crate_def_map_query(db: &dyn DefDatabase, krate: CrateId) -> Arc<CrateDefMap> { | 173 | pub(crate) fn crate_def_map_query(db: &dyn DefDatabase, krate: CrateId) -> Arc<CrateDefMap> { |
175 | let _p = profile("crate_def_map_query").detail(|| { | 174 | let _p = profile::span("crate_def_map_query").detail(|| { |
176 | db.crate_graph()[krate] | 175 | db.crate_graph()[krate] |
177 | .display_name | 176 | .display_name |
178 | .as_ref() | 177 | .as_ref() |