diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-23 15:26:24 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-23 15:26:24 -0700 |
| commit | aea822626fef66b6607bc50114b1fb6f8dcd148a (patch) | |
| tree | 5a3bd5fa42da582951d99db4efbde8f59ebfd47c /src/libstd | |
| parent | 6e0f1d3984b8cef2b27f029270f8bc18b87d14fc (diff) | |
| parent | e24fe5b8cfabb65a763a67403e7b0c91aaa848a9 (diff) | |
| download | rust-aea822626fef66b6607bc50114b1fb6f8dcd148a.tar.gz rust-aea822626fef66b6607bc50114b1fb6f8dcd148a.zip | |
rollup merge of #23503: alexcrichton/fix-ptr-docs
The method with which backwards compatibility was retained ended up leading to documentation that rustdoc didn't handle well and largely ended up confusing.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/old_io/extensions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/old_io/extensions.rs b/src/libstd/old_io/extensions.rs index 2990c1c265d..5b1b9471b07 100644 --- a/src/libstd/old_io/extensions.rs +++ b/src/libstd/old_io/extensions.rs @@ -159,7 +159,7 @@ pub fn u64_to_be_bytes<T, F>(n: u64, size: uint, f: F) -> T where /// that many bytes are parsed. For example, if `size` is 4, then a /// 32-bit value is parsed. pub fn u64_from_be_bytes(data: &[u8], start: uint, size: uint) -> u64 { - use ptr::{copy_nonoverlapping_memory}; + use ptr::{copy_nonoverlapping}; assert!(size <= 8); @@ -171,7 +171,7 @@ pub fn u64_from_be_bytes(data: &[u8], start: uint, size: uint) -> u64 { unsafe { let ptr = data.as_ptr().offset(start as int); let out = buf.as_mut_ptr(); - copy_nonoverlapping_memory(out.offset((8 - size) as int), ptr, size); + copy_nonoverlapping(out.offset((8 - size) as int), ptr, size); (*(out as *const u64)).to_be() } } |
