Files
rust/compiler/rustc_parse/src
Jonathan Brouwer 8355006dd1 Rollup merge of #160592 - Diacod-I:if-let-chain-unclosed-delim-hint, r=estebank
Suggest if-let chain continuation on unclosed delimiter

Meant to fix rust-lang/rust#160550. When an unclosed brace-delimited block begins with && or ||, the "unclosed delimiter" error now points at that line, suggesting the user may have meant to continue an if-let chain.

- Records the leading `&&`/`||` span during lexing (in lex_token_tree_open_delim) and surfaces it in report_suspicious_mismatch_block.
- Adds a `tests/ui/parser` regression test.
2026-08-06 12:41:03 +02:00
..