Lint: Removal of a field in a enum struct variant #153
Labels
A-lint
Area: new or existing lint
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-mentor
Call for participation: Mentorship is available for this issue.
For example:
Removing e.g. the
b
field here is a breaking change.The fields of struct variants always have "default" visibility, just like variants themselves: they inherit the visibility of the enum itself.
This lint is similar to lints checking for removal of pub fields in structs and for checks over enum variants.
It may require a small amount of new schema and adapter code: currently the schema for
StructVariant
doesn't have afield
edge likeStruct
does, and probably should have one. I believe the type of struct variant fields should still beStructField
.The text was updated successfully, but these errors were encountered: