about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-05-10 22:03:23 -0400
committerAlex Crichton <alex@alexcrichton.com>2013-05-10 22:51:06 -0400
commit60803e5fc81ed7065c91c0b1725dbbd4da0af3f7 (patch)
tree64f51d59d7e76fa898035ed2ce71abad5a9a250f /src
parent63c7e2f991eaf79ece0586b19f0461ec6f8933ee (diff)
Fix tests with the swap operator
Diffstat (limited to 'src')
-rw-r--r--src/test/bench/msgsend-ring-pipes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/bench/msgsend-ring-pipes.rs b/src/test/bench/msgsend-ring-pipes.rs
index f5191914679..f698b2c3c11 100644
--- a/src/test/bench/msgsend-ring-pipes.rs
+++ b/src/test/bench/msgsend-ring-pipes.rs
@@ -43,8 +43,8 @@ fn thread_ring(i: uint,
     // Send/Receive lots of messages.
     for uint::range(0, count) |j| {
         //error!("task %?, iter %?", i, j);
-        let num_chan2 = replace(&mut num_chan, None);
-        let num_port2 = replace(&mut num_port, None);
+        let num_chan2 = util::replace(&mut num_chan, None);
+        let num_port2 = util::replace(&mut num_port, None);
         num_chan = Some(ring::client::num(num_chan2.unwrap(), i * j));
         let port = num_port2.unwrap();
         match recv(port) {