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/libcollectionstest | |
| 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/libcollectionstest')
| -rw-r--r-- | src/libcollectionstest/slice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollectionstest/slice.rs b/src/libcollectionstest/slice.rs index 0c3c82eea78..4168fe88a4b 100644 --- a/src/libcollectionstest/slice.rs +++ b/src/libcollectionstest/slice.rs @@ -1428,7 +1428,7 @@ mod bench { let mut v = Vec::<u8>::with_capacity(1024); unsafe { let vp = v.as_mut_ptr(); - ptr::set_memory(vp, 0, 1024); + ptr::write_bytes(vp, 0, 1024); v.set_len(1024); } v |
