Jacob Pratt
defee2995b
Rollup merge of #153888 - MaximilianAzendorf:issue-153583, r=Kivooeo
...
Avoid stack overflow in FindExprBySpan
Fixes rust-lang/rust#153583 .
Deeply nested `?` desugarings can build a very deep HIR expression spine.
When `FindExprBySpan` walks that expression during error reporting, the
recursive `visit_expr` traversal can overflow the stack before rustc emits the
actual diagnostic.
This wraps the recursive expression walk in `ensure_sufficient_stack`, which
lets the compiler report the expected E0277 instead of crashing.
Added a UI regression test for a deeply nested `?` chain.
2026-04-08 23:03:58 -04:00
..
2026-01-23 21:04:27 +00:00
2026-04-03 10:27:30 +00:00
2026-02-08 18:21:47 +11:00
2026-04-08 12:37:25 +02:00
2026-04-08 20:09:27 +00:00
2026-04-06 09:56:16 +00:00
2026-04-08 23:20:07 +00:00
2026-04-08 23:04:36 +02:00
2026-04-07 12:56:57 +00:00
2026-04-08 23:20:07 +00:00
2026-04-07 08:33:54 +10:00
2026-04-08 23:04:34 +02:00
2026-04-08 23:04:34 +02:00
2026-04-08 23:03:57 -04:00
2026-04-07 12:56:57 +00:00
2026-04-03 15:34:33 +11:00
2026-03-18 15:07:31 +11:00
2026-04-03 11:08:11 +02:00
2026-03-01 10:47:29 +01:00
2026-04-08 23:04:32 +02:00
2026-04-08 20:09:27 +00:00
2026-04-07 17:26:32 +02:00
2026-04-06 18:50:01 +02:00
2026-04-07 23:05:30 -04:00
2026-04-03 15:34:33 +11:00
2026-03-11 06:25:23 +11:00
2026-04-08 23:03:56 -04:00
2026-04-05 13:38:16 +10:00
2026-04-07 16:50:19 +10:00
2026-03-31 20:16:57 +11:00
2026-04-07 10:08:12 +02:00
2026-04-06 08:17:32 +00:00
2026-03-04 06:10:42 +00:00
2026-04-08 23:20:07 +00:00
2026-04-06 21:59:29 +02:00
2026-04-08 14:21:57 +02:00
2026-02-24 12:03:17 +01:00
2026-04-03 13:44:12 +11:00
2026-04-08 23:03:57 -04:00
2026-04-07 19:43:18 +00:00
2026-04-08 14:22:06 +02:00
2026-04-07 10:08:12 +02:00
2026-04-07 10:08:12 +02:00
2026-04-07 08:33:54 +10:00
2026-04-08 23:03:57 -04:00
2026-04-08 20:09:27 +00:00
2026-02-18 19:39:51 +09:00
2026-04-07 19:43:18 +00:00
2026-04-08 14:22:07 +02:00
2026-04-07 10:08:12 +02:00
2026-01-08 14:10:33 +01:00
2026-04-07 12:56:57 +00:00
2026-03-16 23:25:36 +08:00
2026-04-07 17:26:21 +02:00
2026-04-08 23:20:07 +00:00
2026-03-17 01:52:28 +01:00
2026-02-13 09:25:39 +08:00
2026-04-06 06:45:42 +00:00
2026-04-08 23:04:36 +02:00
2026-04-07 12:56:57 +00:00
2026-04-08 23:04:34 +02:00
2026-02-10 10:22:05 -05:00
2026-04-08 23:03:58 -04:00
2026-01-19 16:08:54 +00:00
2026-03-24 18:25:21 +01:00
2026-04-07 10:08:12 +02:00
2026-04-07 10:08:12 +02:00