about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBen Blum <bblum@andrew.cmu.edu>2013-06-21 18:52:53 -0400
committerBen Blum <bblum@andrew.cmu.edu>2013-06-29 03:58:50 -0400
commit5784c0912f99a4bfeb75909fab0cf9bb6bef794f (patch)
treecd2f4c1156822c7b4a9589f5ed3a60b549b30128 /src/libstd
parent4e78c1e2a89f65a1827e1f65afc741cee05cee0a (diff)
downloadrust-5784c0912f99a4bfeb75909fab0cf9bb6bef794f.tar.gz
rust-5784c0912f99a4bfeb75909fab0cf9bb6bef794f.zip
Change taskgroup key type to fn:Copy in prep for noncopyable stack closures.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/local_data.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/local_data.rs b/src/libstd/local_data.rs
index 33b4e3f1963..c5f2c8ae584 100644
--- a/src/libstd/local_data.rs
+++ b/src/libstd/local_data.rs
@@ -46,7 +46,7 @@ use task::local_data_priv::{local_get, local_pop, local_modify, local_set, Handl
  *
  * These two cases aside, the interface is safe.
  */
-pub type LocalDataKey<'self,T> = &'self fn(v: @T);
+pub type LocalDataKey<'self,T> = &'self fn:Copy(v: @T);
 
 /**
  * Remove a task-local data value from the table, returning the