From c2faef4b643eb6750b73dd5667bfae25c66b4a3b Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 28 May 2022 22:28:19 -0400 Subject: [PATCH] Make Py_tracefunc an unsafe func There's basically no way to safely write a function with raw pointers for parameters. --- pyo3-ffi/src/cpython/pystate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyo3-ffi/src/cpython/pystate.rs b/pyo3-ffi/src/cpython/pystate.rs index 3025abca..232a5165 100644 --- a/pyo3-ffi/src/cpython/pystate.rs +++ b/pyo3-ffi/src/cpython/pystate.rs @@ -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,