diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index e8cd3a500084a..d332908954b8f 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -2494,8 +2494,7 @@ impl UnsafeCell { #[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` to `T` because of - // #[repr(transparent)]. This exploits std's special status, there is - // no guarantee for user code that this will work in future versions of the compiler! + // #[repr(transparent)]. this as *const T as *mut T }