diff options
Diffstat (limited to 'crates/hir_ty')
-rw-r--r-- | crates/hir_ty/src/autoderef.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_ty/src/autoderef.rs b/crates/hir_ty/src/autoderef.rs index 71bc436e6..7afa2d5ce 100644 --- a/crates/hir_ty/src/autoderef.rs +++ b/crates/hir_ty/src/autoderef.rs | |||
@@ -24,8 +24,10 @@ pub fn autoderef<'a>( | |||
24 | krate: Option<CrateId>, | 24 | krate: Option<CrateId>, |
25 | ty: InEnvironment<Canonical<Ty>>, | 25 | ty: InEnvironment<Canonical<Ty>>, |
26 | ) -> impl Iterator<Item = Canonical<Ty>> + 'a { | 26 | ) -> impl Iterator<Item = Canonical<Ty>> + 'a { |
27 | let _p = profile::span("autoderef"); | ||
27 | let InEnvironment { goal: ty, environment } = ty; | 28 | let InEnvironment { goal: ty, environment } = ty; |
28 | successors(Some(ty), move |ty| { | 29 | successors(Some(ty), move |ty| { |
30 | let _p = profile::span("autoderef.step"); | ||
29 | deref(db, krate?, InEnvironment { goal: ty, environment: environment.clone() }) | 31 | deref(db, krate?, InEnvironment { goal: ty, environment: environment.clone() }) |
30 | }) | 32 | }) |
31 | .take(AUTODEREF_RECURSION_LIMIT) | 33 | .take(AUTODEREF_RECURSION_LIMIT) |