about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/ptr/const_ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs
index 3f065e08ddf..ddff0ff67de 100644
--- a/library/core/src/ptr/const_ptr.rs
+++ b/library/core/src/ptr/const_ptr.rs
@@ -56,7 +56,7 @@ impl<T: ?Sized> *const T {
     #[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
     #[inline]
     pub const fn to_raw_parts(self) -> (*const (), <T as super::Pointee>::Metadata) {
-        (self.cast(), super::metadata(self))
+        (self.cast(), metadata(self))
     }
 
     /// Returns `None` if the pointer is null, or else returns a shared reference to