diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 3f065e08ddfa7..ddff0ff67dea2 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -56,7 +56,7 @@ impl *const T { #[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")] #[inline] pub const fn to_raw_parts(self) -> (*const (), ::Metadata) { - (self.cast(), super::metadata(self)) + (self.cast(), metadata(self)) } /// Returns `None` if the pointer is null, or else returns a shared reference to