Skip to content

Commit

Permalink
Update src/function/accumulated.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored Jul 22, 2024
1 parent 02008d5 commit 49a147a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/function/accumulated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ where

let origin = db.lookup_ingredient(k.ingredient_index).origin(k.key_index);
let inputs = origin.iter().flat_map(|origin| origin.inputs());
// Careful: we want to push in execution order, so reverse order to
// ensure the first child that was executed will be the first child popped
// from the stack.
stack.extend(
inputs
.flat_map(|input| TryInto::<DatabaseKeyIndex>::try_into(input).into_iter())
Expand Down

0 comments on commit 49a147a

Please sign in to comment.