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
..
2026-06-29 16:52:43 +00:00
2026-07-01 10:19:48 +10:00
2026-07-04 09:55:14 +10:00
2026-07-02 22:39:40 +03:00
2026-06-30 12:21:16 -07:00
2026-06-29 21:26:00 -07:00
2026-07-06 04:33:18 -04:00
2026-07-05 14:12:07 +02:00
2026-07-04 09:55:14 +10:00
2026-07-05 17:09:30 +00:00
2026-07-01 17:42:28 -04:00
2026-07-06 04:33:09 -04:00
2026-07-06 22:17:40 -04:00
2026-07-06 22:17:44 -04:00
2026-07-02 17:10:35 +10:00
2026-06-25 23:53:44 +02:00
2026-07-06 22:08:27 +00:00
2026-07-06 04:33:09 -04:00
2026-07-06 22:17:40 -04:00
2026-07-06 11:16:34 +02:00
2026-07-06 17:09:09 +02:00
2026-06-30 16:21:57 +02:00
2026-07-06 17:09:09 +02:00
2026-07-05 14:12:03 +02:00
2026-07-05 08:47:13 +02:00
2026-07-05 14:12:03 +02:00
2026-07-05 08:47:04 +02:00
2026-07-06 22:17:44 -04:00
2026-07-06 22:17:40 -04:00
2026-06-25 17:12:10 +08:00
2026-07-06 22:17:40 -04:00
2026-07-06 22:17:40 -04:00
2026-07-06 08:29:46 +00:00
2026-07-06 18:54:19 +00:00
2026-06-23 17:29:04 +02:00
2026-06-30 12:21:16 -07:00
2026-06-25 17:12:10 +08:00
2026-06-28 16:22:18 -05:00
2026-06-23 17:29:04 +02:00
2026-07-06 22:17:40 -04:00
2026-06-25 17:12:10 +08:00
2026-06-27 22:13:50 -04:00
2026-07-06 04:33:17 -04:00
2026-07-01 09:43:13 -07:00
2026-07-06 04:33:09 -04:00
2026-07-06 22:17:40 -04:00
2026-06-27 11:04:54 +00:00
2026-07-06 18:54:19 +00:00
2026-07-06 22:17:44 -04:00
2026-06-30 15:38:01 +02:00
2026-06-30 12:21:16 -07:00
2026-07-05 08:47:04 +02:00
2026-07-06 08:29:46 +00:00