X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fcore%2Fsrc%2Fcell.rs;h=129213fde7491c8ef02040003c6dc7314af694de;hb=6d8ac8389ead2869e756d4ed1a6ea929f16f1820;hp=77f1ffaacff66d40fc637b7bb1619aed1dbc6bb4;hpb=c991c243b704b8895af15e971dd3a2ab5ee2aac1;p=rust.git diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index 77f1ffaacff..129213fde74 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -1994,7 +1994,7 @@ impl UnsafeCell { #[rustc_const_stable(feature = "const_unsafecell_get", since = "1.32.0")] pub const fn get(&self) -> *mut T { // We can just cast the pointer from `UnsafeCell` to `T` because of - // #[repr(transparent)]. This exploits libstd's special status, there is + // #[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! self as *const UnsafeCell as *const T as *mut T } @@ -2052,7 +2052,7 @@ pub const fn get_mut(&mut self) -> &mut T { #[rustc_const_stable(feature = "unsafe_cell_raw_get", since = "1.56.0")] 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 libstd's special status, there is + // #[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! this as *const T as *mut T }