Unverified Commit 5cddef4f authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Turbopack: fix order of breadth first edges (#88117)

### What?

It's a VecDeque and we are calling pop_front() so we don't want to reverse the roots
parent 7c40cde2
...@@ -136,12 +136,7 @@ where ...@@ -136,12 +136,7 @@ where
pub fn into_breadth_first_edges(self) -> IntoBreadthFirstEdges<T, E> { pub fn into_breadth_first_edges(self) -> IntoBreadthFirstEdges<T, E> {
IntoBreadthFirstEdges { IntoBreadthFirstEdges {
adjacency_map: self.adjacency_map, adjacency_map: self.adjacency_map,
queue: self queue: self.roots.into_iter().map(|root| (None, root)).collect(),
.roots
.into_iter()
.rev()
.map(|root| (None, root))
.collect(),
expanded: FxHashSet::default(), expanded: FxHashSet::default(),
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment