Files
rust/tests/ui
Trevor Gross d6b1108cda Rollup merge of #141670 - chenyukang:yukang-fix-ice-from-contracts, r=nnethercote
Fix ICE in tokenstream with contracts from parser recovery

Fixes rust-lang/rust#140683

After two times of parsing error, the `recover_stmt_` constructs an error ast, then when we expand macors, the invalid tokenstream triggered ICE because of mismatched delims.

Expected `{` and get other tokens is an obvious error message, too much effort on recovery may introduce noise.

r? ```@nnethercote```
2025-05-28 10:28:11 -04:00
..
2025-05-21 07:24:43 +00:00
2025-03-03 08:52:07 +01:00
2025-05-12 16:35:09 +02:00
2025-05-07 16:29:59 +00:00
2025-03-11 20:26:10 -07:00
2025-05-09 12:09:15 +02:00
2025-05-21 20:38:49 +01:00
2025-05-07 16:29:59 +00:00
2025-04-03 21:41:58 +00:00
2025-04-25 20:50:57 +09:00
2025-05-14 13:32:59 +01:00
2025-05-03 17:22:52 +02:00
2025-04-21 16:16:38 +09:00
2025-05-26 16:35:36 +01:00
2025-04-29 18:19:26 +02:00
2025-03-30 01:32:21 +03:00
2025-04-04 09:44:19 +02:00
2025-03-11 20:26:10 -07:00
2025-03-27 14:11:11 +01:00
2025-04-25 20:50:57 +09:00
2025-05-21 20:20:19 +01:00
2025-05-05 21:09:31 +02:00
2025-02-27 10:26:33 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-05-07 21:51:41 +05:00
2025-04-04 16:32:18 +02:00
2025-05-09 22:21:35 +05:00