You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The invalid_value lint has no issue with the following type being zero-initialized or left uninit:
enumOneFruitNonzero{Apple(!),Banana(NonZeroU32),}
That seems like a case we should be able to handle.
I think for non-is_multi_variant enums, we probably can compute the variant that does exist, and then we can recursively check if that one is valid? We'd also need a smarter is_multi_variant that can handle some dataful variants (ensuring they are definitely inhabited).
The
invalid_value
lint has no issue with the following type being zero-initialized or left uninit:That seems like a case we should be able to handle.
I think for non-
is_multi_variant
enums, we probably can compute the variant that does exist, and then we can recursively check if that one is valid? We'd also need a smarteris_multi_variant
that can handle some dataful variants (ensuring they are definitely inhabited).Cc @5225225
The text was updated successfully, but these errors were encountered: