Make Py_tracefunc an unsafe func

There's basically no way to safely write a function with raw pointers for parameters.
This commit is contained in:
Alex Gaynor 2022-05-28 22:28:19 -04:00 committed by GitHub
parent eafbbc5417
commit c2faef4b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ use std::os::raw::c_int;
// skipped _PyInterpreterState_GetMainModule
pub type Py_tracefunc = extern "C" fn(
pub type Py_tracefunc = unsafe extern "C" fn(
obj: *mut PyObject,
frame: *mut PyFrameObject,
what: c_int,