Skip to content

Commit 475f6f8

Browse files
committed
Auto merge of #118454 - lcnr:overflow-yay, r=compiler-errors
new solver: improve instrument annotations
2 parents b10cfcd + 0ec2bf3 commit 475f6f8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

compiler/rustc_trait_selection/src/solve/assembly/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
490490
}
491491
}
492492

493+
#[instrument(level = "debug", skip_all)]
493494
fn assemble_unsize_to_dyn_candidate<G: GoalKind<'tcx>>(
494495
&mut self,
495496
goal: Goal<'tcx, G>,
@@ -507,6 +508,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
507508
}
508509
}
509510

511+
#[instrument(level = "debug", skip_all)]
510512
fn assemble_blanket_impl_candidates<G: GoalKind<'tcx>>(
511513
&mut self,
512514
goal: Goal<'tcx, G>,

compiler/rustc_trait_selection/src/solve/eval_ctxt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub trait InferCtxtEvalExt<'tcx> {
146146
}
147147

148148
impl<'tcx> InferCtxtEvalExt<'tcx> for InferCtxt<'tcx> {
149-
#[instrument(level = "debug", skip(self), ret)]
149+
#[instrument(level = "debug", skip(self))]
150150
fn evaluate_root_goal(
151151
&self,
152152
goal: Goal<'tcx, ty::Predicate<'tcx>>,

compiler/rustc_trait_selection/src/solve/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
288288
/// in [`EvalCtxt::assemble_candidates_via_self_ty`] does not have to normalize
289289
/// the self type. It is required when structurally matching on any other
290290
/// arguments of a trait goal, e.g. when assembling builtin unsize candidates.
291+
#[instrument(level = "debug", skip(self), ret)]
291292
fn try_normalize_ty(
292293
&mut self,
293294
param_env: ty::ParamEnv<'tcx>,

0 commit comments

Comments
 (0)