about summary refs log tree commit diff
path: root/src/test/bench/shootout-reverse-complement.rs
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/test/bench/shootout-reverse-complement.rs
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/test/bench/shootout-reverse-complement.rs')
-rw-r--r--src/test/bench/shootout-reverse-complement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bench/shootout-reverse-complement.rs b/src/test/bench/shootout-reverse-complement.rs
index 875ec670d42..8235b013a81 100644
--- a/src/test/bench/shootout-reverse-complement.rs
+++ b/src/test/bench/shootout-reverse-complement.rs
@@ -46,7 +46,7 @@ extern crate libc;
 
 use std::old_io::stdio::{stdin_raw, stdout_raw};
 use std::old_io::*;
-use std::ptr::{copy_memory, Unique};
+use std::ptr::{copy, Unique};
 use std::thread;
 
 struct Tables {
@@ -181,8 +181,8 @@ fn reverse_complement(seq: &mut [u8], tables: &Tables) {
     let mut i = LINE_LEN;
     while i < len {
         unsafe {
-            copy_memory(seq.as_mut_ptr().offset((i - off + 1) as int),
-                        seq.as_ptr().offset((i - off) as int), off);
+            copy(seq.as_mut_ptr().offset((i - off + 1) as int),
+                 seq.as_ptr().offset((i - off) as int), off);
             *seq.get_unchecked_mut(i - off) = b'\n';
         }
         i += LINE_LEN + 1;