Parser error recovery in `syn` for better IDE support with proc-macros
Rust Internals [Unofficial]
May 31, 2026
FWIW r-a does have a "fixup" system that its goal is to "fix" syntax errors for input passed to attribute/derive proc macros. It's incomplete though.
Discussion in the ATmosphere