Skip to content

Commit

Permalink
move PyCell deprecation to the gil-refs feature gate and add a mi…
Browse files Browse the repository at this point in the history
…gration note
  • Loading branch information
Icxolu committed Mar 1, 2024
1 parent d58c309 commit 5e5bed6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pycell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ unsafe impl<T, U> PyLayout<T> for PyCellBase<U> where U: PySizedLayout<T> {}
/// ```
/// For more information on how, when and why (not) to use `PyCell` please see the
/// [module-level documentation](self).
#[deprecated(since = "0.21.0")]
#[cfg_attr(
not(feature = "gil-refs"),
deprecated(
since = "0.21.0",
note = "`PyCell` was merged into `Bound`, use that instead; see the migration guide for more info"
)
)]
#[repr(C)]
pub struct PyCell<T: PyClassImpl> {
ob_base: <T::BaseType as PyClassBaseType>::LayoutAsBase,
Expand Down

0 comments on commit 5e5bed6

Please sign in to comment.