Skip to content

Commit 9b9ddd6

Browse files
committed
graalpy: disable assertion that does not apply to graalpy
1 parent 7c1c6f1 commit 9b9ddd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/impl_/trampoline.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ pub unsafe fn module_init(
2424
#[inline]
2525
pub unsafe fn noargs(
2626
slf: *mut ffi::PyObject,
27-
args: *mut ffi::PyObject,
27+
_args: *mut ffi::PyObject,
2828
f: for<'py> unsafe fn(Python<'py>, *mut ffi::PyObject) -> PyResult<*mut ffi::PyObject>,
2929
) -> *mut ffi::PyObject {
30-
debug_assert!(args.is_null());
30+
#[cfg(not(GraalPy))] // this is not specified and GraalPy does not pass null here
31+
debug_assert!(_args.is_null());
3132
trampoline_inner(|py| f(py, slf))
3233
}
3334

0 commit comments

Comments
 (0)