Implement `#[non_exhaustive]` on variants.
This commit removes the check that disallows the `#[non_exhaustive]` attribute from being placed on enum variants and removes the associated tests. Further, this commit lowers the visibility of enum variant constructors when the variant is marked as non-exhaustive.
Showing
想要评论请 注册 或 登录