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
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ impl<T: ?Sized> *const T {
#[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