about summary refs log tree commit diff
path: root/library/core
diff options
context:
space:
mode:
authorgavincrawford <94875769+gavincrawford@users.noreply.github.com>2024-11-11 10:30:25 -0700
committergavincrawford <94875769+gavincrawford@users.noreply.github.com>2024-11-11 13:36:43 -0700
commit8ec94d30e514a794154ad467dd5275a78811efcc (patch)
tree4bd3492165515050bec3569a8b41a4e8ff4fc0f5 /library/core
parentfdef65bf6e36fcecd3df71d3a630c306f7acc784 (diff)
downloadrust-8ec94d30e514a794154ad467dd5275a78811efcc.tar.gz
rust-8ec94d30e514a794154ad467dd5275a78811efcc.zip
Update dangling pointer tests
Diffstat (limited to 'library/core')
-rw-r--r--library/core/src/cell.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs
index b3aaba034fe..e595ea56392 100644
--- a/library/core/src/cell.rs
+++ b/library/core/src/cell.rs
@@ -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>,