We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1fc9d7 commit 3390e73Copy full SHA for 3390e73
crates/hir_ty/src/autoderef.rs
@@ -58,6 +58,7 @@ fn deref_by_trait(
58
krate: CrateId,
59
ty: InEnvironment<&Canonical<Ty>>,
60
) -> Option<Canonical<Ty>> {
61
+ let _p = profile::span("deref_by_trait");
62
let deref_trait = match db.lang_item(krate, "deref".into())? {
63
LangItemTarget::TraitId(it) => it,
64
_ => return None,
@@ -85,7 +86,10 @@ fn deref_by_trait(
85
86
environment: ty.environment.clone(),
87
},
88
};
- if db.trait_solve(krate, implements_goal).is_none() {
89
+ if {
90
+ let _p = profile::span("db.trait_solve");
91
+ db.trait_solve(krate, implements_goal).is_none()
92
+ } {
93
return None;
94
}
95
0 commit comments