mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
338f939a8d
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).