Drop-in replacement to panics in proc-macros
This crate serves as a tiny shim around proc_macro::Diagnostic
and compile_error!
. It detects the most preferable way to emit errors based on compiler's version. When the underlying diagnostic type is finally stabilized, this crate will be simply delegating to it, requiring no changes in your code.
Linter | Message | Location |
---|---|---|
No lint warnings ✓ |