@@ -11,7 +11,7 @@ use crate::{
11
11
cycle:: CycleRecoveryStrategy ,
12
12
id:: { AsId , FromId } ,
13
13
ingredient:: { fmt_index, Ingredient } ,
14
- key:: { DatabaseKeyIndex , DependencyIndex } ,
14
+ key:: DatabaseKeyIndex ,
15
15
plumbing:: { Jar , JarAux , Stamp } ,
16
16
table:: { memo:: MemoTable , sync:: SyncTable , Slot , Table } ,
17
17
zalsa:: { IngredientIndex , Zalsa } ,
@@ -182,9 +182,9 @@ impl<C: Configuration> IngredientImpl<C> {
182
182
let value = Self :: data ( zalsa, id) ;
183
183
let stamp = & value. stamps [ field_index] ;
184
184
zalsa_local. report_tracked_read (
185
- DependencyIndex {
185
+ DatabaseKeyIndex {
186
186
ingredient_index : field_ingredient_index,
187
- key_index : Some ( id ) ,
187
+ key_index : id ,
188
188
} ,
189
189
stamp. durability ,
190
190
stamp. changed_at ,
@@ -207,12 +207,7 @@ impl<C: Configuration> Ingredient for IngredientImpl<C> {
207
207
self . ingredient_index
208
208
}
209
209
210
- fn maybe_changed_after (
211
- & self ,
212
- _db : & dyn Database ,
213
- _input : Option < Id > ,
214
- _revision : Revision ,
215
- ) -> bool {
210
+ fn maybe_changed_after ( & self , _db : & dyn Database , _input : Id , _revision : Revision ) -> bool {
216
211
// Input ingredients are just a counter, they store no data, they are immortal.
217
212
// Their *fields* are stored in function ingredients elsewhere.
218
213
false
@@ -230,7 +225,7 @@ impl<C: Configuration> Ingredient for IngredientImpl<C> {
230
225
& self ,
231
226
_db : & dyn Database ,
232
227
executor : DatabaseKeyIndex ,
233
- output_key : Option < Id > ,
228
+ output_key : Id ,
234
229
) {
235
230
unreachable ! (
236
231
"mark_validated_output({:?}, {:?}): input cannot be the output of a tracked function" ,
@@ -242,7 +237,7 @@ impl<C: Configuration> Ingredient for IngredientImpl<C> {
242
237
& self ,
243
238
_db : & dyn Database ,
244
239
executor : DatabaseKeyIndex ,
245
- stale_output_key : Option < Id > ,
240
+ stale_output_key : Id ,
246
241
) {
247
242
unreachable ! (
248
243
"remove_stale_output({:?}, {:?}): input cannot be the output of a tracked function" ,
@@ -258,7 +253,7 @@ impl<C: Configuration> Ingredient for IngredientImpl<C> {
258
253
panic ! ( "unexpected call to `reset_for_new_revision`" )
259
254
}
260
255
261
- fn fmt_index ( & self , index : Option < Id > , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
256
+ fn fmt_index ( & self , index : Id , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
262
257
fmt_index ( C :: DEBUG_NAME , index, fmt)
263
258
}
264
259
0 commit comments