Skip to content

Commit

Permalink
Use local path for already-imported function
Browse files Browse the repository at this point in the history
This module has `use super::*;` at the top.

Co-authored-by: Oli Scherer <[email protected]>
  • Loading branch information
SimonSapin and oli-obk committed Feb 15, 2021
1 parent cf000f0 commit cac71bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/ptr/const_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cac71bf

Please sign in to comment.