diff options
Diffstat (limited to 'library/core/src/cell.rs')
| -rw-r--r-- | library/core/src/cell.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index bf4c682d33e..5bbe2f22efb 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -2131,6 +2131,7 @@ impl<T: ?Sized> UnsafeCell<T> { #[inline(always)] #[stable(feature = "unsafe_cell_raw_get", since = "1.56.0")] #[rustc_const_stable(feature = "unsafe_cell_raw_get", since = "1.56.0")] + #[rustc_diagnostic_item = "unsafe_cell_raw_get"] pub const fn raw_get(this: *const Self) -> *mut T { // We can just cast the pointer from `UnsafeCell<T>` to `T` because of // #[repr(transparent)]. This exploits std's special status, there is |
