@@ -87,7 +87,7 @@ impl<'tcx> WipAddedGoalsEvaluation<'tcx> {
8787pub struct WipGoalEvaluationStep < ' tcx > {
8888 pub instantiated_goal : QueryInput < ' tcx , ty:: Predicate < ' tcx > > ,
8989
90- pub evaluation : WipGoalCandidate < ' tcx > ,
90+ pub evaluation : WipProbe < ' tcx > ,
9191}
9292
9393impl < ' tcx > WipGoalEvaluationStep < ' tcx > {
@@ -102,21 +102,21 @@ impl<'tcx> WipGoalEvaluationStep<'tcx> {
102102}
103103
104104#[ derive( Eq , PartialEq , Debug ) ]
105- pub struct WipGoalCandidate < ' tcx > {
105+ pub struct WipProbe < ' tcx > {
106106 pub added_goals_evaluations : Vec < WipAddedGoalsEvaluation < ' tcx > > ,
107- pub candidates : Vec < WipGoalCandidate < ' tcx > > ,
107+ pub nested_probes : Vec < WipProbe < ' tcx > > ,
108108 pub kind : Option < ProbeKind < ' tcx > > ,
109109}
110110
111- impl < ' tcx > WipGoalCandidate < ' tcx > {
112- pub fn finalize ( self ) -> inspect:: GoalCandidate < ' tcx > {
113- inspect:: GoalCandidate {
111+ impl < ' tcx > WipProbe < ' tcx > {
112+ pub fn finalize ( self ) -> inspect:: Probe < ' tcx > {
113+ inspect:: Probe {
114114 added_goals_evaluations : self
115115 . added_goals_evaluations
116116 . into_iter ( )
117117 . map ( WipAddedGoalsEvaluation :: finalize)
118118 . collect ( ) ,
119- candidates : self . candidates . into_iter ( ) . map ( WipGoalCandidate :: finalize) . collect ( ) ,
119+ nested_probes : self . nested_probes . into_iter ( ) . map ( WipProbe :: finalize) . collect ( ) ,
120120 kind : self . kind . unwrap ( ) ,
121121 }
122122 }
@@ -129,7 +129,7 @@ pub enum DebugSolver<'tcx> {
129129 CanonicalGoalEvaluation ( WipCanonicalGoalEvaluation < ' tcx > ) ,
130130 AddedGoalsEvaluation ( WipAddedGoalsEvaluation < ' tcx > ) ,
131131 GoalEvaluationStep ( WipGoalEvaluationStep < ' tcx > ) ,
132- GoalCandidate ( WipGoalCandidate < ' tcx > ) ,
132+ Probe ( WipProbe < ' tcx > ) ,
133133}
134134
135135impl < ' tcx > From < WipGoalEvaluation < ' tcx > > for DebugSolver < ' tcx > {
@@ -156,9 +156,9 @@ impl<'tcx> From<WipGoalEvaluationStep<'tcx>> for DebugSolver<'tcx> {
156156 }
157157}
158158
159- impl < ' tcx > From < WipGoalCandidate < ' tcx > > for DebugSolver < ' tcx > {
160- fn from ( g : WipGoalCandidate < ' tcx > ) -> DebugSolver < ' tcx > {
161- DebugSolver :: GoalCandidate ( g )
159+ impl < ' tcx > From < WipProbe < ' tcx > > for DebugSolver < ' tcx > {
160+ fn from ( p : WipProbe < ' tcx > ) -> DebugSolver < ' tcx > {
161+ DebugSolver :: Probe ( p )
162162 }
163163}
164164
@@ -329,9 +329,9 @@ impl<'tcx> ProofTreeBuilder<'tcx> {
329329 ) -> ProofTreeBuilder < ' tcx > {
330330 self . nested ( || WipGoalEvaluationStep {
331331 instantiated_goal,
332- evaluation : WipGoalCandidate {
332+ evaluation : WipProbe {
333333 added_goals_evaluations : vec ! [ ] ,
334- candidates : vec ! [ ] ,
334+ nested_probes : vec ! [ ] ,
335335 kind : None ,
336336 } ,
337337 } )
@@ -350,36 +350,36 @@ impl<'tcx> ProofTreeBuilder<'tcx> {
350350 }
351351 }
352352
353- pub fn new_goal_candidate ( & mut self ) -> ProofTreeBuilder < ' tcx > {
354- self . nested ( || WipGoalCandidate {
353+ pub fn new_probe ( & mut self ) -> ProofTreeBuilder < ' tcx > {
354+ self . nested ( || WipProbe {
355355 added_goals_evaluations : vec ! [ ] ,
356- candidates : vec ! [ ] ,
356+ nested_probes : vec ! [ ] ,
357357 kind : None ,
358358 } )
359359 }
360360
361361 pub fn probe_kind ( & mut self , probe_kind : ProbeKind < ' tcx > ) {
362362 if let Some ( this) = self . as_mut ( ) {
363363 match this {
364- DebugSolver :: GoalCandidate ( this) => {
364+ DebugSolver :: Probe ( this) => {
365365 assert_eq ! ( this. kind. replace( probe_kind) , None )
366366 }
367367 _ => unreachable ! ( ) ,
368368 }
369369 }
370370 }
371371
372- pub fn goal_candidate ( & mut self , candidate : ProofTreeBuilder < ' tcx > ) {
372+ pub fn finish_probe ( & mut self , probe : ProofTreeBuilder < ' tcx > ) {
373373 if let Some ( this) = self . as_mut ( ) {
374- match ( this, candidate . state . unwrap ( ) . tree ) {
374+ match ( this, probe . state . unwrap ( ) . tree ) {
375375 (
376- DebugSolver :: GoalCandidate ( WipGoalCandidate { candidates , .. } )
376+ DebugSolver :: Probe ( WipProbe { nested_probes , .. } )
377377 | DebugSolver :: GoalEvaluationStep ( WipGoalEvaluationStep {
378- evaluation : WipGoalCandidate { candidates , .. } ,
378+ evaluation : WipProbe { nested_probes , .. } ,
379379 ..
380380 } ) ,
381- DebugSolver :: GoalCandidate ( candidate ) ,
382- ) => candidates . push ( candidate ) ,
381+ DebugSolver :: Probe ( probe ) ,
382+ ) => nested_probes . push ( probe ) ,
383383 _ => unreachable ! ( ) ,
384384 }
385385 }
@@ -416,12 +416,10 @@ impl<'tcx> ProofTreeBuilder<'tcx> {
416416 match ( this, added_goals_evaluation. state . unwrap ( ) . tree ) {
417417 (
418418 DebugSolver :: GoalEvaluationStep ( WipGoalEvaluationStep {
419- evaluation : WipGoalCandidate { added_goals_evaluations, .. } ,
419+ evaluation : WipProbe { added_goals_evaluations, .. } ,
420420 ..
421421 } )
422- | DebugSolver :: GoalCandidate ( WipGoalCandidate {
423- added_goals_evaluations, ..
424- } ) ,
422+ | DebugSolver :: Probe ( WipProbe { added_goals_evaluations, .. } ) ,
425423 DebugSolver :: AddedGoalsEvaluation ( added_goals_evaluation) ,
426424 ) => added_goals_evaluations. push ( added_goals_evaluation) ,
427425 _ => unreachable ! ( ) ,
0 commit comments