Files
rust/tests/ui/parser
Jonathan Brouwer 3f0676c213 Rollup merge of #157079 - qaijuang:raw-expr-list-recovery, r=Kivooeo
Don't recover `&raw EXPR` as a missing comma

The parser already has a targeted suggestion for `&raw EXPR`, added in rust-lang/rust#139392, telling the user that `&raw` must be followed by `const` or `mut`.

In comma-separated expression lists, the generic missing-comma recovery would then treat the expression after `raw` as the next list element. That produced follow-up diagnostics like:

- `help: missing ','`
- `cannot find value raw in this scope`
- an arity error for calls such as `takes_raw_ptr(&raw x)`

This PR avoids that comma recovery when we are already in the `&raw` missing-`const`/`mut` diagnostic path. For function calls, it preserves the call expression with a single error argument, so useful later diagnostics such as `cannot find function f` are still emitted.

Fixes rust-lang/rust#157015.
2026-06-12 20:40:56 +02:00
..
…
2026-05-13 02:40:58 +00:00
2026-03-13 10:00:39 +00:00
fix
2026-06-02 23:00:47 +08:00
fix
2026-06-02 23:00:47 +08:00
fix
2026-06-02 23:00:47 +08:00
fix
2026-06-02 23:00:47 +08:00
2026-02-22 20:20:33 +01:00