A few macros used internally in rustc for working with error codes still use legacy proc macros (aka syntactic plugins) making rustc one of the last (the last?) noticeable users of the feature in the ecosystem.
They need to be moved to librustc_macros and re-implemented using the stable proc macro API.
Currently they are registered in librustc_interface/passes.rs - __diagnostic_used, __register_diagnostic and __build_diagnostic_array.
(If they can be rewritten as declarative macros, that would be even better.)
A few macros used internally in
rustcfor working with error codes still use legacy proc macros (aka syntactic plugins) makingrustcone of the last (the last?) noticeable users of the feature in the ecosystem.They need to be moved to
librustc_macrosand re-implemented using the stable proc macro API.Currently they are registered in
librustc_interface/passes.rs-__diagnostic_used,__register_diagnosticand__build_diagnostic_array.(If they can be rewritten as declarative macros, that would be even better.)