Parser error recovery in `syn` for better IDE support with proc-macros
Rust Internals [Unofficial]
May 31, 2026
If the code fails to parse, the compiler/IDE will output an error, and it usually will be better.
If the error is macro specific, then yes you should emit both.
Discussion in the ATmosphere