]> git.lizzy.rs Git - rust.git/commitdiff
Use local path for already-imported function
authorSimon Sapin <simon.sapin@exyr.org>
Mon, 15 Feb 2021 13:25:22 +0000 (14:25 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Mon, 15 Feb 2021 13:27:52 +0000 (14:27 +0100)
This module has `use super::*;` at the top.

Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
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