External Publication
Visit Post

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

Rust Internals [Unofficial] June 2, 2026
Source

What would break if syn were to produce warnings in most cases (using the Diagnostic interface) and output potentially partial parsed code to the macro, leaving it up to the proc_macro to either error if the data it needs is not available, or work on the partial output if everything it needs is there?

Discussion in the ATmosphere

Loading comments...