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 {