about summary refs log tree commit diff
path: root/src/libcollectionstest
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-23 15:26:24 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-23 15:26:24 -0700
commitaea822626fef66b6607bc50114b1fb6f8dcd148a (patch)
tree5a3bd5fa42da582951d99db4efbde8f59ebfd47c /src/libcollectionstest
parent6e0f1d3984b8cef2b27f029270f8bc18b87d14fc (diff)
parente24fe5b8cfabb65a763a67403e7b0c91aaa848a9 (diff)
downloadrust-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/libcollectionstest')
-rw-r--r--src/libcollectionstest/slice.rs2
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