Skip to content

Commit d1fc9d7

Browse files
Add a missing span
1 parent 10a243e commit d1fc9d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/hir_ty/src/autoderef.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ pub fn autoderef<'a>(
2424
krate: Option<CrateId>,
2525
ty: InEnvironment<Canonical<Ty>>,
2626
) -> impl Iterator<Item = Canonical<Ty>> + 'a {
27+
let _p = profile::span("autoderef");
2728
let InEnvironment { goal: ty, environment } = ty;
2829
successors(Some(ty), move |ty| {
30+
let _p = profile::span("autoderef.step");
2931
deref(db, krate?, InEnvironment { goal: ty, environment: environment.clone() })
3032
})
3133
.take(AUTODEREF_RECURSION_LIMIT)

0 commit comments

Comments
 (0)