Module proc_macro_error::multi
source · Expand description
Facility to stack and emit multiple errors.
[abort!
] macro stops a proc-macro right away, much like in a panic-like
fashion. But sometimes you do not want to stop right there, for example you’re
processing a list of attributes and want to emit a separate error for every
mis-built attribute.
The [emit_error!
] and [emit_call_site_error!
] macros are just for it!
Functions§
- Abort macro execution and display all the emitted errors, if any.