Skip to content

Commit cac71bf

Browse files
SimonSapinoli-obk
andcommitted
Use local path for already-imported function
This module has `use super::*;` at the top. Co-authored-by: Oli Scherer <[email protected]>
1 parent cf000f0 commit cac71bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/core/src/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl<T: ?Sized> *const T {
5656
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
5757
#[inline]
5858
pub const fn to_raw_parts(self) -> (*const (), <T as super::Pointee>::Metadata) {
59-
(self.cast(), super::metadata(self))
59+
(self.cast(), metadata(self))
6060
}
6161

6262
/// Returns `None` if the pointer is null, or else returns a shared reference to

0 commit comments

Comments
 (0)