Skip to content

Commit 901b032

Browse files
authored
Move negative impls into macro (#6017)
1 parent eef6277 commit 901b032

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src/marker.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -268,29 +268,29 @@ mod nightly {
268268
/// });
269269
/// ```
270270
pub unsafe auto trait Ungil {}
271-
}
272271

273-
impl !Ungil for crate::Python<'_> {}
272+
impl !Ungil for crate::Python<'_> {}
274273

275-
// This means that PyString, PyList, etc all inherit !Ungil from this.
276-
impl !Ungil for crate::PyAny {}
274+
// This means that PyString, PyList, etc all inherit !Ungil from this.
275+
impl !Ungil for crate::PyAny {}
277276

278-
impl<T> !Ungil for crate::PyRef<'_, T> {}
279-
impl<T> !Ungil for crate::PyRefMut<'_, T> {}
277+
impl<T> !Ungil for crate::PyRef<'_, T> {}
278+
impl<T> !Ungil for crate::PyRefMut<'_, T> {}
280279

281-
// FFI pointees
282-
impl !Ungil for crate::ffi::PyObject {}
283-
impl !Ungil for crate::ffi::PyLongObject {}
280+
// FFI pointees
281+
impl !Ungil for crate::ffi::PyObject {}
282+
impl !Ungil for crate::ffi::PyLongObject {}
284283

285-
impl !Ungil for crate::ffi::PyThreadState {}
286-
impl !Ungil for crate::ffi::PyInterpreterState {}
287-
impl !Ungil for crate::ffi::PyWeakReference {}
288-
impl !Ungil for crate::ffi::PyFrameObject {}
289-
impl !Ungil for crate::ffi::PyCodeObject {}
290-
#[cfg(not(Py_LIMITED_API))]
291-
impl !Ungil for crate::ffi::PyDictKeysObject {}
292-
#[cfg(not(any(Py_LIMITED_API, Py_3_10)))]
293-
impl !Ungil for crate::ffi::PyArena {}
284+
impl !Ungil for crate::ffi::PyThreadState {}
285+
impl !Ungil for crate::ffi::PyInterpreterState {}
286+
impl !Ungil for crate::ffi::PyWeakReference {}
287+
impl !Ungil for crate::ffi::PyFrameObject {}
288+
impl !Ungil for crate::ffi::PyCodeObject {}
289+
#[cfg(not(Py_LIMITED_API))]
290+
impl !Ungil for crate::ffi::PyDictKeysObject {}
291+
#[cfg(not(any(Py_LIMITED_API, Py_3_10)))]
292+
impl !Ungil for crate::ffi::PyArena {}
293+
}
294294
}
295295

296296
#[cfg(feature = "nightly")]

0 commit comments

Comments
 (0)