Parser error recovery in `syn` for better IDE support with proc-macros
Rust Internals [Unofficial]
May 31, 2026
For many macros, that would mean that they produce no errors but fail to have their intended effects. That seems like it would be very confusing.
In most cases, you could output a compile_error!() and the input tokens, though.
Discussion in the ATmosphere