]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/ptr/metadata.rs
Rollup merge of #103035 - saethlin:assert_unsafe_precondition3, r=thomcc
[rust.git] / library / core / src / ptr / metadata.rs
index 8865c834c88d6f517ad8512743fce4bfbf2bcce6..caa10f1818b4d08e6c419fcc4d4b4c98efa267b9 100644 (file)
@@ -135,16 +135,16 @@ pub const fn from_raw_parts_mut<T: ?Sized>(
 }
 
 #[repr(C)]
-pub(crate) union PtrRepr<T: ?Sized> {
-    pub(crate) const_ptr: *const T,
-    pub(crate) mut_ptr: *mut T,
-    pub(crate) components: PtrComponents<T>,
+union PtrRepr<T: ?Sized> {
+    const_ptr: *const T,
+    mut_ptr: *mut T,
+    components: PtrComponents<T>,
 }
 
 #[repr(C)]
-pub(crate) struct PtrComponents<T: ?Sized> {
-    pub(crate) data_address: *const (),
-    pub(crate) metadata: <T as Pointee>::Metadata,
+struct PtrComponents<T: ?Sized> {
+    data_address: *const (),
+    metadata: <T as Pointee>::Metadata,
 }
 
 // Manual impl needed to avoid `T: Copy` bound.