File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_type_ir/src/search_graph Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1262,7 +1262,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
1262
1262
encountered_overflow |= stack_entry. encountered_overflow ;
1263
1263
debug_assert_eq ! ( stack_entry. input, input) ;
1264
1264
1265
- // If the current goal is not the root of a cycle, we are done.
1265
+ // If the current goal is not a cycle head , we are done.
1266
1266
//
1267
1267
// There are no provisional cache entries which depend on this goal.
1268
1268
let Some ( usages) = stack_entry. usages else {
@@ -1278,7 +1278,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
1278
1278
//
1279
1279
// Check whether we reached a fixpoint, either because the final result
1280
1280
// is equal to the provisional result of the previous iteration, or because
1281
- // this was only the root of either coinductive or inductive cycles, and the
1281
+ // this was only the head of either coinductive or inductive cycles, and the
1282
1282
// final result is equal to the initial response for that case.
1283
1283
if self . reached_fixpoint ( cx, & stack_entry, usages, result) {
1284
1284
self . rebase_provisional_cache_entries ( & stack_entry, |_, result| result) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ rustc_index::newtype_index! {
13
13
pub ( super ) struct StackDepth { }
14
14
}
15
15
16
- /// Stack entries of the evaluation stack. Its fields tend to be lazily
16
+ /// Stack entries of the evaluation stack. Its fields tend to be lazily updated
17
17
/// when popping a child goal or completely immutable.
18
18
#[ derive_where( Debug ; X : Cx ) ]
19
19
pub ( super ) struct StackEntry < X : Cx > {
@@ -42,7 +42,7 @@ pub(super) struct StackEntry<X: Cx> {
42
42
/// Whether evaluating this goal encountered overflow. Lazily updated.
43
43
pub encountered_overflow : bool ,
44
44
45
- /// Whether and how this goal has been used as the root of a cycle. Lazily updated.
45
+ /// Whether and how this goal has been used as a cycle head . Lazily updated.
46
46
pub usages : Option < HeadUsages > ,
47
47
48
48
/// We want to be able to ignore head usages if they happen inside of candidates
You can’t perform that action at this time.
0 commit comments