diff options
author | Kirill Bulatov <[email protected]> | 2021-04-14 17:11:17 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-04-14 17:11:17 +0100 |
commit | af8a6049a50809b0f375ec66d1636a5703c83568 (patch) | |
tree | 10d0173b20dd96e0884d677181139e651b511f3f /crates/hir_ty/src/autoderef.rs | |
parent | 678af4106504913ea04672e29f452861d97fae18 (diff) |
Profile trait solving for all invocations
Diffstat (limited to 'crates/hir_ty/src/autoderef.rs')
-rw-r--r-- | crates/hir_ty/src/autoderef.rs | 5 |
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 | ||