From cac71bf8098f41205567d0442f99ae972effbee1 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 15 Feb 2021 14:25:22 +0100 Subject: [PATCH] Use local path for already-imported function This module has `use super::*;` at the top. Co-authored-by: Oli Scherer --- library/core/src/ptr/const_ptr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ pub const fn cast(self) -> *const U { #[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 -- 2.44.0