Skip to content

Commit 26567b1

Browse files
committed
Properly mark objects as mutable behind shared references
1 parent f90605b commit 26567b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

block-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct Class {
3535
_priv: [u8; 0],
3636

3737
/// See objc_sys::OpaqueData
38-
_opaque: PhantomData<(UnsafeCell<()>, *const UnsafeCell<()>, PhantomPinned)>,
38+
_opaque: UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>,
3939
}
4040

4141
/// Block descriptor flags.

objc-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub use various::*;
130130
/// (It's also less of a breaking change on our part if we re-add these).
131131
///
132132
/// TODO: Replace this with `extern type` to also mark it as `!Sized`.
133-
type OpaqueData = PhantomData<(UnsafeCell<()>, *const UnsafeCell<()>, PhantomPinned)>;
133+
type OpaqueData = UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>;
134134

135135
#[cfg(test)]
136136
mod tests {

0 commit comments

Comments
 (0)