Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #78607 - HeroicKatora:post-order-walk-iter, r=davidtwco
Transform post order walk to an iterative approach The previous recursive approach might overflow the stack when walking a particularly deep, list-like, graph. In particular, dominator calculation for borrow checking does such a traversal and very long functions might lead to a region dependency graph with in this problematic structure. This addresses what appears to be the cause of #78567 (`@SunHao-0` thanks for the stack trace).
- Loading branch information