Use local path for already-imported function
This module has `use super::*;` at the top. Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
parent
cf000f0408
commit
cac71bf809
|
@ -56,7 +56,7 @@ impl<T: ?Sized> *const T {
|
||||||
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
|
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn to_raw_parts(self) -> (*const (), <T as super::Pointee>::Metadata) {
|
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
|
/// Returns `None` if the pointer is null, or else returns a shared reference to
|
||||||
|
|
Loading…
Reference in New Issue