diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 19:51:10 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-21 10:16:01 -0700 |
| commit | e24fe5b8cfabb65a763a67403e7b0c91aaa848a9 (patch) | |
| tree | 0269ac6808b1f38376bd7520c2771bae96c2a8b2 /src/libstd | |
| parent | ecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61 (diff) | |
| download | rust-e24fe5b8cfabb65a763a67403e7b0c91aaa848a9.tar.gz rust-e24fe5b8cfabb65a763a67403e7b0c91aaa848a9.zip | |
std: Remove deprecated ptr functions
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() } } |
