about summary refs log tree commit diff
path: root/src/libstd/task_pool.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-02-27 23:30:40 -0800
committerbors <bors@rust-lang.org>2013-02-27 23:30:40 -0800
commitc705440ee3f98a01c0e840202f320ed7998221d6 (patch)
treedeec96635e740426ae18513d8a0019715ced23fc /src/libstd/task_pool.rs
parentfcd4af169fc6ed45090625c354460a911177533b (diff)
parent43d43adf6bd2024b1ddc0e596d4bed88e1df82b1 (diff)
downloadrust-c705440ee3f98a01c0e840202f320ed7998221d6.tar.gz
rust-c705440ee3f98a01c0e840202f320ed7998221d6.zip
auto merge of #5155 : bstrie/rust/dedrop, r=pcwalton
This removes all but 6 uses of `drop {}` from the entire codebase. Removing any of the remaining uses causes various non-trivial bugs; I'll start reporting them once this gets merged.
Diffstat (limited to 'src/libstd/task_pool.rs')
-rw-r--r--src/libstd/task_pool.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/task_pool.rs b/src/libstd/task_pool.rs
index 6b8ea8a6ef4..35b7ff5ad27 100644
--- a/src/libstd/task_pool.rs
+++ b/src/libstd/task_pool.rs
@@ -28,7 +28,10 @@ pub struct TaskPool<T> {
     channels: ~[Chan<Msg<T>>],
     mut next_index: uint,
 
-    drop {
+}
+
+impl<T> Drop for TaskPool<T> {
+    fn finalize(&self) {
         for self.channels.each |channel| {
             channel.send(Quit);
         }