Skip to content

Commit 75a2605

Browse files
Better places for spans
1 parent 3390e73 commit 75a2605

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/hir_ty/src/autoderef.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ 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");
2827
let InEnvironment { goal: ty, environment } = ty;
2928
successors(Some(ty), move |ty| {
30-
let _p = profile::span("autoderef.step");
3129
deref(db, krate?, InEnvironment { goal: ty, environment: environment.clone() })
3230
})
3331
.take(AUTODEREF_RECURSION_LIMIT)
@@ -38,6 +36,7 @@ pub(crate) fn deref(
3836
krate: CrateId,
3937
ty: InEnvironment<&Canonical<Ty>>,
4038
) -> Option<Canonical<Ty>> {
39+
let _p = profile::span("deref");
4140
if let Some(derefed) = builtin_deref(&ty.goal.value) {
4241
Some(Canonical { value: derefed, binders: ty.goal.binders.clone() })
4342
} else {

0 commit comments

Comments
 (0)