Skip to content

Commit a04e81e

Browse files
committed
add comment
1 parent 872db2a commit a04e81e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_trait_selection/src/solve/search_graph.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ impl<'tcx> SearchGraph<'tcx> {
204204
break 'global;
205205
};
206206

207+
// If we're building a proof tree and the current cache entry does not
208+
// contain a proof tree, we do not use the entry but instead recompute
209+
// the goal. We simply overwrite the existing entry once we're done,
210+
// caching the proof tree.
207211
if !inspect.is_noop() {
208212
if let Some(revisions) = proof_tree {
209213
inspect.goal_evaluation_kind(

0 commit comments

Comments
 (0)