]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/ptr/const_ptr.rs
Use local path for already-imported function
[rust.git] / library / core / src / ptr / const_ptr.rs
index 3f065e08ddfa7c6f41a17c4a4790e5c4d7592d5a..ddff0ff67dea2e9aa57bfcda104bebcd70e647b9 100644 (file)
@@ -56,7 +56,7 @@ pub const fn cast<U>(self) -> *const U {
     #[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