@petrochenkov writes:
The convention enum Something_ { SomethingVariant } is "deprecated" and exists in HIR only because not all HIR structures were updated to the "modern" form enum SomethingKind { Variant } like it was done in AST.
New structures should not use it, so it'd be better to rename Visibility_ to VisibilityKind.
The referenced changes to AST were mostly in February 2016's #31487 (justification). The following HIR nodes are still using the underscore-suffix convention, and should probably be changed to the Kind style for consistency:
@petrochenkov writes:
The referenced changes to AST were mostly in February 2016's #31487 (justification). The following HIR nodes are still using the underscore-suffix convention, and should probably be changed to the
Kindstyle for consistency:BinOp_Stmt_Decl_Variant_