We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c1c6f1 commit 9b9ddd6Copy full SHA for 9b9ddd6
src/impl_/trampoline.rs
@@ -24,10 +24,11 @@ pub unsafe fn module_init(
24
#[inline]
25
pub unsafe fn noargs(
26
slf: *mut ffi::PyObject,
27
- args: *mut ffi::PyObject,
+ _args: *mut ffi::PyObject,
28
f: for<'py> unsafe fn(Python<'py>, *mut ffi::PyObject) -> PyResult<*mut ffi::PyObject>,
29
) -> *mut ffi::PyObject {
30
- debug_assert!(args.is_null());
+ #[cfg(not(GraalPy))] // this is not specified and GraalPy does not pass null here
31
+ debug_assert!(_args.is_null());
32
trampoline_inner(|py| f(py, slf))
33
}
34
0 commit comments