We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b4b2c commit 1e855b4Copy full SHA for 1e855b4
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