Split up "enum removed" from "enum changed to struct/union" checking #302
Labels
A-lint
Area: new or existing lint
C-enhancement
Category: raise the bar on expectations
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-mentor
Call for participation: Mentorship is available for this issue.
Per #296, it's confusing that changing an enum to a struct (or another type) causes a lint that states the enum was removed. While technically correct (the enum doesn't exist), it doesn't match the user's probable mental model.
Resolution:
enum_removed
lint specifically look for enum deletions, and make it not match enum -> struct or enum -> union cases.enum_became_another_kind_of_type
lint for changing enums to structs or unions.Analogous changes to
struct_removed
should be considered as part of fixing #297 as well. The futureunion_removed
lint should follow suit too.The text was updated successfully, but these errors were encountered: