We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7353e84 commit d1f6892Copy full SHA for d1f6892
core/src/cell.rs
@@ -2131,6 +2131,7 @@ impl<T: ?Sized> UnsafeCell<T> {
2131
#[inline(always)]
2132
#[stable(feature = "unsafe_cell_raw_get", since = "1.56.0")]
2133
#[rustc_const_stable(feature = "unsafe_cell_raw_get", since = "1.56.0")]
2134
+ #[rustc_diagnostic_item = "unsafe_cell_raw_get"]
2135
pub const fn raw_get(this: *const Self) -> *mut T {
2136
// We can just cast the pointer from `UnsafeCell<T>` to `T` because of
2137
// #[repr(transparent)]. This exploits std's special status, there is
0 commit comments