Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake child_iter in Flows not borrow the whole flow #2253
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice if
child_iterdidn't borrow the whole flow. Rust is being conservative here, because it doesn't know that the structure of the flow tree is guaranteed to be immutable during layout and is trying to guard against iterator invalidation. However, we already have to guarantee that the structure of the flow tree is immutable for parallel layout to be safe, so the iterator invalidation guarantees onchild_iteraren't buying us anything.