-
Notifications
You must be signed in to change notification settings - Fork 15
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
Some unsafe code is not marked as such #1
Comments
For an end application like this I wonder how far up the stack to push Many functions in |
Quite a few functions I think. For example, TDes::set_length and RDes::release can cause unsafety if not used correctly as they do not themselves enforce the required invariants (even if they're not public).
All the way up! An illusion of safety is much worse than most functions being marked |
For example, calling EthernetDevice::new twice results in undefined behavior, but it's not
unsafe
.The text was updated successfully, but these errors were encountered: