Files
Jacob Pratt ce811cd701 Rollup merge of #158553 - sjwang05:issue-144719, r=oli-obk
Avoid infinite recursion when trying to build valtrees for self-referential consts

This PR adds cycle detection to `const_to_valtree_inner` by using a tricolor DFS, so self-referential statics in pats don't cause valtree construction to recurse infinitely. Instead, we now return a new `ValTreeCreationError::CyclicConst`, similar to the current `InvalidConst` and `NodesOverflow` variants.

fixes rust-lang/rust#144719
2026-07-06 22:17:44 -04:00
..