rustc: Migrate __register_diagnostic
and friends to stable proc macros
#64132
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
A few macros used internally in
rustc
for working with error codes still use legacy proc macros (aka syntactic plugins) makingrustc
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.)
The text was updated successfully, but these errors were encountered: