about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2013-06-28 08:05:11 -0400
committerCorey Richardson <corey@octayn.net>2013-06-28 10:47:59 -0400
commit8f5cb92f89a48fd47b0eff6fa72aa2f0b18188b3 (patch)
treec4b0d35cec4f6be2d29eafde9b39825d2f71ad17
parentfae4a9e5ba36202dc8036cf90a7dd8ace4c1336a (diff)
downloadrust-8f5cb92f89a48fd47b0eff6fa72aa2f0b18188b3.tar.gz
rust-8f5cb92f89a48fd47b0eff6fa72aa2f0b18188b3.zip
Fix threadring
-rw-r--r--src/test/bench/shootout-threadring.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/bench/shootout-threadring.rs b/src/test/bench/shootout-threadring.rs
index a67bbb05dfb..97168de5d43 100644
--- a/src/test/bench/shootout-threadring.rs
+++ b/src/test/bench/shootout-threadring.rs
@@ -13,7 +13,9 @@
 use std::os;
 
 fn start(n_tasks: int, token: int) {
-    let mut (p, ch1) = stream();
+    let (p, ch1) = stream();
+    let mut p = p;
+    let mut ch1 = ch1;
     ch1.send(token);
     //  XXX could not get this to work with a range closure
     let mut i = 2;