1
Fork 0

Update dangling pointer tests

This commit is contained in:
gavincrawford 2024-11-11 10:30:25 -07:00
parent fdef65bf6e
commit 8ec94d30e5
No known key found for this signature in database
GPG key ID: F4403D0C8297F254
5 changed files with 50 additions and 20 deletions

View file

@ -2273,6 +2273,7 @@ impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<UnsafeCell<U>> for UnsafeCell<T>
/// See [`UnsafeCell`] for details.
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
#[repr(transparent)]
#[rustc_diagnostic_item = "sync_unsafe_cell"]
#[rustc_pub_transparent]
pub struct SyncUnsafeCell<T: ?Sized> {
value: UnsafeCell<T>,