11#[ cfg( feature = "accumulator" ) ]
22use crate :: accumulator:: accumulated_map:: InputAccumulatedValues ;
3- use crate :: cycle:: { CycleHeads , CycleRecoveryStrategy , IterationCount , ProvisionalStatus } ;
3+ use crate :: cycle:: { CycleHeadKeys , CycleRecoveryStrategy , IterationCount , ProvisionalStatus } ;
44use crate :: function:: memo:: Memo ;
55use crate :: function:: sync:: ClaimResult ;
66use crate :: function:: { Configuration , IngredientImpl } ;
5151 db : & ' db C :: DbView ,
5252 id : Id ,
5353 revision : Revision ,
54- cycle_heads : & mut CycleHeads ,
54+ cycle_heads : & mut CycleHeadKeys ,
5555 ) -> VerifyResult {
5656 let ( zalsa, zalsa_local) = db. zalsas ( ) ;
5757 let memo_ingredient_index = self . memo_ingredient_index ( zalsa, id) ;
@@ -108,7 +108,7 @@ where
108108 key_index : Id ,
109109 revision : Revision ,
110110 memo_ingredient_index : MemoIngredientIndex ,
111- cycle_heads : & mut CycleHeads ,
111+ cycle_heads : & mut CycleHeadKeys ,
112112 ) -> Option < VerifyResult > {
113113 let database_key_index = self . database_key_index ( key_index) ;
114114
@@ -135,7 +135,7 @@ where
135135 crate :: tracing:: debug!(
136136 "hit cycle at {database_key_index:?} in `maybe_changed_after`, returning fixpoint initial value" ,
137137 ) ;
138- cycle_heads. push_initial ( database_key_index) ;
138+ cycle_heads. insert ( database_key_index) ;
139139 return Some ( VerifyResult :: unchanged ( ) ) ;
140140 }
141141 } ,
@@ -406,7 +406,7 @@ where
406406 zalsa : & Zalsa ,
407407 old_memo : & Memo < ' _ , C > ,
408408 database_key_index : DatabaseKeyIndex ,
409- cycle_heads : & mut CycleHeads ,
409+ cycle_heads : & mut CycleHeadKeys ,
410410 ) -> VerifyResult {
411411 crate :: tracing:: debug!(
412412 "{database_key_index:?}: deep_verify_memo(old_memo = {old_memo:#?})" ,
@@ -447,7 +447,7 @@ where
447447 // are tracked by the outer query. Nothing should have changed assuming that the
448448 // fixpoint initial function is deterministic.
449449 QueryOriginRef :: FixpointInitial => {
450- cycle_heads. push_initial ( database_key_index) ;
450+ cycle_heads. insert ( database_key_index) ;
451451 VerifyResult :: unchanged ( )
452452 }
453453 QueryOriginRef :: DerivedUntracked ( _) => {
0 commit comments