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:
Simon Sapin 2021-02-15 14:25:22 +01:00
parent cf000f0408
commit cac71bf809

View File

@ -56,7 +56,7 @@ pub const fn cast<U>(self) -> *const U {
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
#[inline]
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