From d5ba4759cb35f4a81d040b3340ce3d06839f7df8 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Sat, 2 Nov 2024 20:54:06 +0000 Subject: [PATCH] fix nightly build --- src/err/err_state.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/err/err_state.rs b/src/err/err_state.rs index 70d449c8b52..4ddd560b1ee 100644 --- a/src/err/err_state.rs +++ b/src/err/err_state.rs @@ -25,6 +25,8 @@ pub(crate) struct PyErrState { // handed out as a reference. unsafe impl Send for PyErrState {} unsafe impl Sync for PyErrState {} +#[cfg(feature = "nightly")] +unsafe impl crate::marker::Ungil for PyErrState {} impl PyErrState { pub(crate) fn lazy(f: Box) -> Self {