about summary refs log tree commit diff
path: root/src/libsync/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-10 14:56:47 -0800
committerbors <bors@rust-lang.org>2014-02-10 14:56:47 -0800
commit38ed4674e8054ee854871303401bffed7c05b01b (patch)
tree59745ee9aa34079821e8afa2274a4bc83e98254d /src/libsync/sync
parentcf9164f94c6a7e3717f67b1fb74a7662639835f0 (diff)
parente9ff91e9beb6c92d9662242c1090c507b1611c59 (diff)
downloadrust-38ed4674e8054ee854871303401bffed7c05b01b.tar.gz
rust-38ed4674e8054ee854871303401bffed7c05b01b.zip
auto merge of #11956 : edwardw/rust/issue-7556, r=cmr
Closes #7556.

Also move ``std::util::Void`` to ``std::any::Void``. It makes more sense to me.
Diffstat (limited to 'src/libsync/sync')
-rw-r--r--src/libsync/sync/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsync/sync/mod.rs b/src/libsync/sync/mod.rs
index cfff31e08d4..0ac385ea1d1 100644
--- a/src/libsync/sync/mod.rs
+++ b/src/libsync/sync/mod.rs
@@ -20,10 +20,10 @@
 use std::cast;
 use std::comm;
 use std::kinds::marker;
+use std::mem::replace;
 use std::sync::arc::UnsafeArc;
 use std::sync::atomics;
 use std::unstable::finally::Finally;
-use std::util;
 
 use arc::MutexArc;
 
@@ -290,7 +290,7 @@ impl<'a> Condvar<'a> {
                     // To avoid :broadcast_heavy, we make a new waitqueue,
                     // swap it out with the old one, and broadcast on the
                     // old one outside of the little-lock.
-                    queue = Some(util::replace(&mut state.blocked[condvar_id],
+                    queue = Some(replace(&mut state.blocked[condvar_id],
                                                WaitQueue::new()));
                 } else {
                     out_of_bounds = Some(state.blocked.len());