-
Notifications
You must be signed in to change notification settings - Fork 234
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
Unsoundness in <SockRef as From<&AsRawFd>>::from
#229
Comments
This is the same problem as being discussed in #229, |
Whoops I meant #218. |
Ah, sorry about that, shoulda checked. |
Oh, wait, I'll add this to that discussion, but this is actually unsound language-wise, not just questionably unsafe/non-private - because of the niche optimization from #222, you can create an invalid value in safe code. |
You're right using |
You can do something like:
With the changes in #222
The text was updated successfully, but these errors were encountered: