-
Notifications
You must be signed in to change notification settings - Fork 795
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
AsPyPointer should be unsafe trait #3325
Comments
Yikes, good observation! I also wonder if as an alternative we can reduce the scope of I've been wondering about adding |
|
fixes #3325 -- mark `AsPyPointer` as `unsafe trait`
Bug Description
Various code in pyo3 relies on
AsPyPointer::as_ptr
to return a valid pointer. But because it's not an unsafe trait, it has no invariants.Steps to Reproduce
Backtrace
The text was updated successfully, but these errors were encountered: