-
Notifications
You must be signed in to change notification settings - Fork 35
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
Move doc(hidden) items to __private module and make yielder::pair unsafe #84
Conversation
If it’s known that these methods can cause UB if used incorrectly, and are actually Otherwise, people might just consider it a potential semver-breaking module, not an actual safety issue. |
To clarify that they are not public APIs.
Disagreed. First of all, users should not use private APIs. I think the distinction between "safe" and "unsafe" private modules is misleading. (Even if it is a "safe" private module, it is not "fine" for users to use it.)
Disagreed. Such APIs are usually called unstable instead of private. That said, I don't think those who would abuse the private API care about documentation or convention... |
3a5efeb
to
530fc82
Compare
Given this point, I think it would be difficult to completely deal with users who want to abuse the private API unless the async-stream/async-stream/src/yielder.rs Lines 23 to 28 in 530fc82
|
Since this is adding an |
No, unsafe_code will not trigger on |
To clarify that they are not public APIs. (To prevent someone from accidentally using it...)