Files
rust/compiler/rustc_parse/src/parser
Jonathan Brouwer 0ae3fd93a3 Rollup merge of #161796 - fmease:rm-dead-underscore-recovery, r=mu001999
Remove dead parse error recovery (underscores in expressions)

Back in b7f7756566 (2019) the parser was extended to recover from `_`s as elements of tuple expressions (this was later extended to also cover call expressions). At the time, `_` obviously wasn't an expression yet.

Nowadays `parse_expr_res` will *always* successfully parse `_` as an `ExprKind::Underscore` (irrespective of the passed `Restrictions`). Consequently, we will never reach the special case in `parse_expr_catch_underscore`. Drop this entire wrapper function.

<sub>(No LLM was or will be used by me during the entire creation process of this PR)</sub>
2026-08-26 08:01:00 +02:00
..
2026-07-20 21:42:26 +10:00
2026-08-23 14:39:15 +02:00
2026-08-24 14:07:37 +10:00