instrument constituent types computation · rust-lang/rust@bf360d4 (original) (raw)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ use crate::solve::EvalCtxt;
14 14 //
15 15 // For types with an "existential" binder, i.e. coroutine witnesses, we also
16 16 // instantiate the binder with placeholders eagerly.
17 +#[instrument(level = "debug", skip(ecx), ret)]
17 18 pub(in crate::solve) fn instantiate_constituent_tys_for_auto_trait<'tcx>(
18 19 ecx: &EvalCtxt<'_, 'tcx>,
19 20 ty: Ty<'tcx>,
@@ -107,6 +108,7 @@ pub(in crate::solve) fn replace_erased_lifetimes_with_bound_vars<'tcx>(
107 108 ty::Binder::bind_with_vars(ty, bound_vars)
108 109 }
109 110
111 +#[instrument(level = "debug", skip(ecx), ret)]
110 112 pub(in crate::solve) fn instantiate_constituent_tys_for_sized_trait<'tcx>(
111 113 ecx: &EvalCtxt<'_, 'tcx>,
112 114 ty: Ty<'tcx>,
@@ -152,6 +154,7 @@ pub(in crate::solve) fn instantiate_constituent_tys_for_sized_trait<'tcx>(
152 154 }
153 155 }
154 156
157 +#[instrument(level = "debug", skip(ecx), ret)]
155 158 pub(in crate::solve) fn instantiate_constituent_tys_for_copy_clone_trait<'tcx>(
156 159 ecx: &EvalCtxt<'_, 'tcx>,
157 160 ty: Ty<'tcx>,