aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/autoderef.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-04-14 17:11:17 +0100
committerKirill Bulatov <[email protected]>2021-04-14 17:11:17 +0100
commitaf8a6049a50809b0f375ec66d1636a5703c83568 (patch)
tree10d0173b20dd96e0884d677181139e651b511f3f /crates/hir_ty/src/autoderef.rs
parent678af4106504913ea04672e29f452861d97fae18 (diff)
Profile trait solving for all invocations
Diffstat (limited to 'crates/hir_ty/src/autoderef.rs')
-rw-r--r--crates/hir_ty/src/autoderef.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/hir_ty/src/autoderef.rs b/crates/hir_ty/src/autoderef.rs
index 6d2cf4619..2c07494a9 100644
--- a/crates/hir_ty/src/autoderef.rs
+++ b/crates/hir_ty/src/autoderef.rs
@@ -85,10 +85,7 @@ fn deref_by_trait(
85 environment: ty.environment.clone(), 85 environment: ty.environment.clone(),
86 }, 86 },
87 }; 87 };
88 if { 88 if db.trait_solve(krate, implements_goal).is_none() {
89 let _p = profile::span("db.trait_solve");
90 db.trait_solve(krate, implements_goal).is_none()
91 } {
92 return None; 89 return None;
93 } 90 }
94 91