Skip to content

Commit bf360d4

Browse files
committed
instrument constituent types computation
1 parent 750c2ec commit bf360d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: compiler/rustc_trait_selection/src/solve/assembly/structural_traits.rs

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use crate::solve::EvalCtxt;
1414
//
1515
// For types with an "existential" binder, i.e. coroutine witnesses, we also
1616
// instantiate the binder with placeholders eagerly.
17+
#[instrument(level = "debug", skip(ecx), ret)]
1718
pub(in crate::solve) fn instantiate_constituent_tys_for_auto_trait<'tcx>(
1819
ecx: &EvalCtxt<'_, 'tcx>,
1920
ty: Ty<'tcx>,
@@ -107,6 +108,7 @@ pub(in crate::solve) fn replace_erased_lifetimes_with_bound_vars<'tcx>(
107108
ty::Binder::bind_with_vars(ty, bound_vars)
108109
}
109110

111+
#[instrument(level = "debug", skip(ecx), ret)]
110112
pub(in crate::solve) fn instantiate_constituent_tys_for_sized_trait<'tcx>(
111113
ecx: &EvalCtxt<'_, 'tcx>,
112114
ty: Ty<'tcx>,
@@ -152,6 +154,7 @@ pub(in crate::solve) fn instantiate_constituent_tys_for_sized_trait<'tcx>(
152154
}
153155
}
154156

157+
#[instrument(level = "debug", skip(ecx), ret)]
155158
pub(in crate::solve) fn instantiate_constituent_tys_for_copy_clone_trait<'tcx>(
156159
ecx: &EvalCtxt<'_, 'tcx>,
157160
ty: Ty<'tcx>,

0 commit comments

Comments
 (0)