diff options
| author | Michael Goulet <michael@errs.io> | 2024-02-16 17:56:15 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-02-16 23:53:09 +0000 |
| commit | 228441dbd6e9fc823da545ed29499f6f8e5d7101 (patch) | |
| tree | f1cb72fa1a07e291ac488f6d1e5f39c01f3a31ef /compiler/rustc_trait_selection/src/solve | |
| parent | bccb9bbb418a30aeb332052e721beb6ebc6b1ce7 (diff) | |
Use fulfillment in next trait solver coherence
Diffstat (limited to 'compiler/rustc_trait_selection/src/solve')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/inspect/analyse.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/inspect/analyse.rs b/compiler/rustc_trait_selection/src/solve/inspect/analyse.rs index f33d0f397ce..9020c11b255 100644 --- a/compiler/rustc_trait_selection/src/solve/inspect/analyse.rs +++ b/compiler/rustc_trait_selection/src/solve/inspect/analyse.rs @@ -230,8 +230,10 @@ impl<'tcx> ProofTreeInferCtxtExt<'tcx> for InferCtxt<'tcx> { goal: Goal<'tcx, ty::Predicate<'tcx>>, visitor: &mut V, ) -> ControlFlow<V::BreakTy> { - let (_, proof_tree) = self.evaluate_root_goal(goal, GenerateProofTree::Yes); - let proof_tree = proof_tree.unwrap(); - visitor.visit_goal(&InspectGoal::new(self, 0, &proof_tree)) + self.probe(|_| { + let (_, proof_tree) = self.evaluate_root_goal(goal, GenerateProofTree::Yes); + let proof_tree = proof_tree.unwrap(); + visitor.visit_goal(&InspectGoal::new(self, 0, &proof_tree)) + }) } } |
