new solver: improve instrument annotations

This commit is contained in:
lcnr 2023-11-29 19:27:04 +01:00
parent abe34e9ab1
commit 0ec2bf3e0a
3 changed files with 4 additions and 1 deletions

View File

@ -490,6 +490,7 @@ fn assemble_non_blanket_impl_candidates<G: GoalKind<'tcx>>(
} }
} }
#[instrument(level = "debug", skip_all)]
fn assemble_unsize_to_dyn_candidate<G: GoalKind<'tcx>>( fn assemble_unsize_to_dyn_candidate<G: GoalKind<'tcx>>(
&mut self, &mut self,
goal: Goal<'tcx, G>, goal: Goal<'tcx, G>,
@ -507,6 +508,7 @@ fn assemble_unsize_to_dyn_candidate<G: GoalKind<'tcx>>(
} }
} }
#[instrument(level = "debug", skip_all)]
fn assemble_blanket_impl_candidates<G: GoalKind<'tcx>>( fn assemble_blanket_impl_candidates<G: GoalKind<'tcx>>(
&mut self, &mut self,
goal: Goal<'tcx, G>, goal: Goal<'tcx, G>,

View File

@ -146,7 +146,7 @@ fn evaluate_root_goal(
} }
impl<'tcx> InferCtxtEvalExt<'tcx> for InferCtxt<'tcx> { impl<'tcx> InferCtxtEvalExt<'tcx> for InferCtxt<'tcx> {
#[instrument(level = "debug", skip(self), ret)] #[instrument(level = "debug", skip(self))]
fn evaluate_root_goal( fn evaluate_root_goal(
&self, &self,
goal: Goal<'tcx, ty::Predicate<'tcx>>, goal: Goal<'tcx, ty::Predicate<'tcx>>,

View File

@ -288,6 +288,7 @@ fn flounder(&mut self, responses: &[CanonicalResponse<'tcx>]) -> QueryResult<'tc
/// in [`EvalCtxt::assemble_candidates_via_self_ty`] does not have to normalize /// in [`EvalCtxt::assemble_candidates_via_self_ty`] does not have to normalize
/// the self type. It is required when structurally matching on any other /// the self type. It is required when structurally matching on any other
/// arguments of a trait goal, e.g. when assembling builtin unsize candidates. /// arguments of a trait goal, e.g. when assembling builtin unsize candidates.
#[instrument(level = "debug", skip(self), ret)]
fn try_normalize_ty( fn try_normalize_ty(
&mut self, &mut self,
param_env: ty::ParamEnv<'tcx>, param_env: ty::ParamEnv<'tcx>,