rust/compiler/rustc_parse/src
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
..
lexer Implement RFC 3503: frontmatters 2025-05-05 23:10:08 +08:00
parser Rollup merge of #141670 - chenyukang:yukang-fix-ice-from-contracts, r=nnethercote 2025-05-28 10:28:11 -04:00
errors.rs move asm parsing code into rustc_parse 2025-05-27 09:44:10 +02:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
validate_attr.rs Make attribute safety validation logic more obvious 2025-05-04 21:44:50 +08:00