Skip to content

Commit 70deae9

Browse files
committed
graalpy: disable assertion that does not apply to graalpy
1 parent c8ec117 commit 70deae9

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(|py| f(py, slf))
3233
}
3334

0 commit comments

Comments
 (0)