External Publication
Visit Post

Parser error recovery in `syn` for better IDE support with proc-macros

Rust Internals [Unofficial] May 30, 2026
Source

Crowdsourcing request: What syntax changes that will affect the AST are currently in flight?

one other thing that would be really nice would to have better parser error recovery so using a proc-macro on some large section of code doesn't just replace everything with compile_error!() whenever the code is incomplete while you're editing it in an IDE.

Crowdsourcing request: What syntax changes that will affect the AST are currently in flight?

Lets open another thread for that conversation. I'd like to hear more.

@ekuber

Creating a new thread here as you requested.

Discussion in the ATmosphere

Loading comments...