diff options
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 26 | 
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 4a7a16b2c94..32dcb5bff36 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -63,24 +63,24 @@ #![stable(feature = "rust1", since = "1.0.0")] -use convert::From; -use intrinsics; -use ops::{CoerceUnsized, DispatchFromDyn}; -use fmt; -use hash; -use marker::{PhantomData, Unsize}; -use mem::{self, MaybeUninit}; +use crate::convert::From; +use crate::intrinsics; +use crate::ops::{CoerceUnsized, DispatchFromDyn}; +use crate::fmt; +use crate::hash; +use crate::marker::{PhantomData, Unsize}; +use crate::mem::{self, MaybeUninit}; -use cmp::Ordering::{self, Less, Equal, Greater}; +use crate::cmp::Ordering::{self, Less, Equal, Greater}; #[stable(feature = "rust1", since = "1.0.0")] -pub use intrinsics::copy_nonoverlapping; +pub use crate::intrinsics::copy_nonoverlapping; #[stable(feature = "rust1", since = "1.0.0")] -pub use intrinsics::copy; +pub use crate::intrinsics::copy; #[stable(feature = "rust1", since = "1.0.0")] -pub use intrinsics::write_bytes; +pub use crate::intrinsics::write_bytes; /// Executes the destructor (if any) of the pointed-to value. /// @@ -2402,7 +2402,7 @@ pub(crate) unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usize { } } - let stride = ::mem::size_of::<T>(); + let stride = mem::size_of::<T>(); let a_minus_one = a.wrapping_sub(1); let pmoda = p as usize & a_minus_one; @@ -2580,7 +2580,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool { /// ``` #[stable(feature = "ptr_hash", since = "1.35.0")] pub fn hash<T: ?Sized, S: hash::Hasher>(hashee: *const T, into: &mut S) { - use hash::Hash; + use crate::hash::Hash; hashee.hash(into); }  | 
