diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2021-02-15 14:25:22 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2021-02-15 14:27:52 +0100 |
| commit | cac71bf8098f41205567d0442f99ae972effbee1 (patch) | |
| tree | dfad8e4b66f1165ed42da93d833fa4e77adc5a35 | |
| parent | cf000f0408f3d9c4e62d2c71aae979ab0677ca0e (diff) | |
| download | rust-cac71bf8098f41205567d0442f99ae972effbee1.tar.gz rust-cac71bf8098f41205567d0442f99ae972effbee1.zip | |
Use local path for already-imported function
This module has `use super::*;` at the top. Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
| -rw-r--r-- | library/core/src/ptr/const_ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 3f065e08ddf..ddff0ff67de 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -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 |
