aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-04-14 13:52:56 +0100
committerKirill Bulatov <[email protected]>2021-04-14 13:52:56 +0100
commitd1fc9d727be6f39d5511cf4c5125b40489dfd6be (patch)
tree9497704d3f8173c5071f2512038685b4515f89cc /crates
parent10a243ea55565a0dd1de52f8f802c3e3a7bfef54 (diff)
Add a missing span
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_ty/src/autoderef.rs2
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)