diff options
Diffstat (limited to 'crates/ra_hir_ty/src/method_resolution.rs')
-rw-r--r-- | crates/ra_hir_ty/src/method_resolution.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir_ty/src/method_resolution.rs b/crates/ra_hir_ty/src/method_resolution.rs index fb4b30a13..3b3bee6a7 100644 --- a/crates/ra_hir_ty/src/method_resolution.rs +++ b/crates/ra_hir_ty/src/method_resolution.rs | |||
@@ -13,7 +13,6 @@ use hir_def::{ | |||
13 | }; | 13 | }; |
14 | use hir_expand::name::Name; | 14 | use hir_expand::name::Name; |
15 | use ra_db::CrateId; | 15 | use ra_db::CrateId; |
16 | use ra_prof::profile; | ||
17 | use rustc_hash::{FxHashMap, FxHashSet}; | 16 | use rustc_hash::{FxHashMap, FxHashSet}; |
18 | 17 | ||
19 | use super::Substs; | 18 | use super::Substs; |
@@ -109,7 +108,7 @@ pub struct TraitImpls { | |||
109 | 108 | ||
110 | impl TraitImpls { | 109 | impl TraitImpls { |
111 | pub(crate) fn trait_impls_in_crate_query(db: &dyn HirDatabase, krate: CrateId) -> Arc<Self> { | 110 | pub(crate) fn trait_impls_in_crate_query(db: &dyn HirDatabase, krate: CrateId) -> Arc<Self> { |
112 | let _p = profile("trait_impls_in_crate_query"); | 111 | let _p = profile::span("trait_impls_in_crate_query"); |
113 | let mut impls = Self { map: FxHashMap::default() }; | 112 | let mut impls = Self { map: FxHashMap::default() }; |
114 | 113 | ||
115 | let crate_def_map = db.crate_def_map(krate); | 114 | let crate_def_map = db.crate_def_map(krate); |
@@ -135,7 +134,7 @@ impl TraitImpls { | |||
135 | } | 134 | } |
136 | 135 | ||
137 | pub(crate) fn trait_impls_in_deps_query(db: &dyn HirDatabase, krate: CrateId) -> Arc<Self> { | 136 | pub(crate) fn trait_impls_in_deps_query(db: &dyn HirDatabase, krate: CrateId) -> Arc<Self> { |
138 | let _p = profile("trait_impls_in_deps_query"); | 137 | let _p = profile::span("trait_impls_in_deps_query"); |
139 | let crate_graph = db.crate_graph(); | 138 | let crate_graph = db.crate_graph(); |
140 | let mut res = Self { map: FxHashMap::default() }; | 139 | let mut res = Self { map: FxHashMap::default() }; |
141 | 140 | ||