We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf000f0 commit cac71bfCopy full SHA for cac71bf
library/core/src/ptr/const_ptr.rs
@@ -56,7 +56,7 @@ impl<T: ?Sized> *const T {
56
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
57
#[inline]
58
pub const fn to_raw_parts(self) -> (*const (), <T as super::Pointee>::Metadata) {
59
- (self.cast(), super::metadata(self))
+ (self.cast(), metadata(self))
60
}
61
62
/// Returns `None` if the pointer is null, or else returns a shared reference to
0 commit comments