-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more Zeroable
and ZeroableInOption
impls
#158
Conversation
For the wide pointer/reference types, I'm unclear on the metadata requirements. Does a null pointer not need a valid length? and does the and where specifically is there documentation about this? I'd rather not add the impls if there's no docs about it. |
The layout of pointers to unsized types is currently explicitly unspecified in the reference, aside from being That being said: I do think some reasonable assumptions can be made, especially under the
I think it is reasonable to assume that a
It's not mentioned in the documentation that I can find, but for specifically (Not evidence, but under the current implementation: I would hesistate to add impls of Other than that, I agree that it'd probably be best not to add these until there is stable documentation to support that they are sound, though perhaps they could be added under a cargo feature until then?. (I also agree with the comment in the code that impls like |
f2feb90
to
66c27c7
Compare
I removed the problematic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're good like this
No description provided.