Skip to content

Commit 095c024

Browse files
committed
proof tree cleanup 2/n
1 parent ef65bda commit 095c024

File tree

3 files changed

+147
-237
lines changed

3 files changed

+147
-237
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::coherence;
2020
use crate::delegate::SolverDelegate;
2121
use crate::placeholder::BoundVarReplacer;
2222
use crate::resolve::eager_resolve_vars;
23-
use crate::solve::inspect::{self, ProofTreeBuilder};
23+
use crate::solve::inspect::{self, GoalEvaluationBuilder};
2424
use crate::solve::search_graph::SearchGraph;
2525
use crate::solve::ty::may_use_unstable_feature;
2626
use crate::solve::{
@@ -129,7 +129,7 @@ where
129129
// evaluation code.
130130
tainted: Result<(), NoSolution>,
131131

132-
pub(super) inspect: ProofTreeBuilder<D>,
132+
pub(super) inspect: inspect::EvaluationStepBuilder<D>,
133133
}
134134

135135
#[derive(PartialEq, Eq, Debug, Hash, Clone, Copy)]
@@ -292,7 +292,7 @@ where
292292
delegate,
293293
search_graph: &mut search_graph,
294294
nested_goals: Default::default(),
295-
inspect: ProofTreeBuilder::new_noop(),
295+
inspect: inspect::EvaluationStepBuilder::new_noop(),
296296

297297
// Only relevant when canonicalizing the response,
298298
// which we don't do within this evaluation context.
@@ -324,7 +324,7 @@ where
324324
cx: I,
325325
search_graph: &'a mut SearchGraph<D>,
326326
canonical_input: CanonicalInput<I>,
327-
canonical_goal_evaluation: &mut ProofTreeBuilder<D>,
327+
canonical_goal_evaluation: &mut GoalEvaluationBuilder<D>,
328328
f: impl FnOnce(&mut EvalCtxt<'_, D>, Goal<I, I::Predicate>) -> R,
329329
) -> R {
330330
let (ref delegate, input, var_values) = D::build_with_canonical(cx, &canonical_input);
@@ -439,7 +439,7 @@ where
439439
self.cx(),
440440
canonical_goal,
441441
self.step_kind_for_source(source),
442-
&mut ProofTreeBuilder::new_noop(),
442+
&mut GoalEvaluationBuilder::new_noop(),
443443
);
444444
let response = match canonical_result {
445445
Err(e) => return Err(e),
@@ -523,7 +523,7 @@ where
523523
let (goal, opaque_types) = eager_resolve_vars(self.delegate, (goal, opaque_types));
524524

525525
let (orig_values, canonical_goal) = self.canonicalize_goal(goal, opaque_types);
526-
let mut goal_evaluation = ProofTreeBuilder::new_goal_evaluation(goal, &orig_values);
526+
let mut goal_evaluation = GoalEvaluationBuilder::new(goal, &orig_values);
527527
let canonical_result = self.search_graph.evaluate_goal(
528528
self.cx(),
529529
canonical_goal,

0 commit comments

Comments
 (0)