|
72 | 72 | db: &'db C::DbView, |
73 | 73 | id: Id, |
74 | 74 | revision: Revision, |
75 | | - cycle_heads: &mut MaybeChangeAfterCycleHeads, |
| 75 | + cycle_heads: &mut VerifyCycleHeads, |
76 | 76 | ) -> VerifyResult { |
77 | 77 | let (zalsa, zalsa_local) = db.zalsas(); |
78 | 78 | let memo_ingredient_index = self.memo_ingredient_index(zalsa, id); |
@@ -131,7 +131,7 @@ where |
131 | 131 | key_index: Id, |
132 | 132 | revision: Revision, |
133 | 133 | memo_ingredient_index: MemoIngredientIndex, |
134 | | - cycle_heads: &mut MaybeChangeAfterCycleHeads, |
| 134 | + cycle_heads: &mut VerifyCycleHeads, |
135 | 135 | ) -> Option<VerifyResult> { |
136 | 136 | let database_key_index = self.database_key_index(key_index); |
137 | 137 |
|
@@ -243,7 +243,7 @@ where |
243 | 243 | &'db self, |
244 | 244 | db: &'db C::DbView, |
245 | 245 | database_key_index: DatabaseKeyIndex, |
246 | | - cycle_heads: &mut MaybeChangeAfterCycleHeads, |
| 246 | + cycle_heads: &mut VerifyCycleHeads, |
247 | 247 | ) -> VerifyResult { |
248 | 248 | match C::CYCLE_STRATEGY { |
249 | 249 | // SAFETY: We do not access the query stack reentrantly. |
@@ -498,7 +498,7 @@ where |
498 | 498 | zalsa: &Zalsa, |
499 | 499 | old_memo: &Memo<'_, C>, |
500 | 500 | database_key_index: DatabaseKeyIndex, |
501 | | - cycle_heads: &mut MaybeChangeAfterCycleHeads, |
| 501 | + cycle_heads: &mut VerifyCycleHeads, |
502 | 502 | can_shallow_update: ShallowUpdate, |
503 | 503 | ) -> VerifyResult { |
504 | 504 | crate::tracing::debug!( |
@@ -533,7 +533,7 @@ where |
533 | 533 |
|
534 | 534 | // The `MaybeChangeAfterCycleHeads` is used as an out parameter and it's |
535 | 535 | // the caller's responsibility to pass an empty `heads`, which is what we do here. |
536 | | - let mut inner_cycle_heads = MaybeChangeAfterCycleHeads { |
| 536 | + let mut inner_cycle_heads = VerifyCycleHeads { |
537 | 537 | heads: std::mem::take(&mut child_cycle_heads), |
538 | 538 | has_outer_cycles: cycle_heads.has_any(), |
539 | 539 | }; |
@@ -691,15 +691,15 @@ impl ShallowUpdate { |
691 | 691 | /// |
692 | 692 | /// [`maybe_changed_after`]: crate::ingredient::Ingredient::maybe_changed_after |
693 | 693 | #[derive(Debug, Default)] |
694 | | -pub struct MaybeChangeAfterCycleHeads { |
| 694 | +pub struct VerifyCycleHeads { |
695 | 695 | heads: Vec<DatabaseKeyIndex>, |
696 | 696 |
|
697 | 697 | /// Whether the outer query (e.g. the parent query running `maybe_changed_after`) has encountered |
698 | 698 | /// any cycles to this point. |
699 | 699 | has_outer_cycles: bool, |
700 | 700 | } |
701 | 701 |
|
702 | | -impl MaybeChangeAfterCycleHeads { |
| 702 | +impl VerifyCycleHeads { |
703 | 703 | #[inline] |
704 | 704 | fn contains(&self, key: DatabaseKeyIndex) -> bool { |
705 | 705 | self.heads.contains(&key) |
|
0 commit comments