about summary refs log tree commit diff
path: root/src/libcore/task
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-25 13:21:04 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-26 21:30:17 -0700
commit8b56a8380b6cca384f4ade7aa1a07b0c5eb77d60 (patch)
tree506d6be2fd2d0699da58cfdf89553310731e0c30 /src/libcore/task
parent15688eaf284b54d29e42b4ec415c23c94e567b23 (diff)
downloadrust-8b56a8380b6cca384f4ade7aa1a07b0c5eb77d60.tar.gz
rust-8b56a8380b6cca384f4ade7aa1a07b0c5eb77d60.zip
librustc: Modify all code to use new lifetime binder syntax
Diffstat (limited to 'src/libcore/task')
-rw-r--r--src/libcore/task/local_data.rs2
-rw-r--r--src/libcore/task/spawn.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/task/local_data.rs b/src/libcore/task/local_data.rs
index ccd91709479..e386f93a429 100644
--- a/src/libcore/task/local_data.rs
+++ b/src/libcore/task/local_data.rs
@@ -44,7 +44,7 @@ use task::rt;
  *
  * These two cases aside, the interface is safe.
  */
-pub type LocalDataKey<T> = &'self fn(v: @T);
+pub type LocalDataKey<'self,T> = &'self fn(v: @T);
 
 /**
  * Remove a task-local data value from the table, returning the
diff --git a/src/libcore/task/spawn.rs b/src/libcore/task/spawn.rs
index f353db5ae70..cc075ed2a92 100644
--- a/src/libcore/task/spawn.rs
+++ b/src/libcore/task/spawn.rs
@@ -122,7 +122,7 @@ struct TaskGroupData {
 }
 type TaskGroupArc = unstable::Exclusive<Option<TaskGroupData>>;
 
-type TaskGroupInner = &'self mut Option<TaskGroupData>;
+type TaskGroupInner<'self> = &'self mut Option<TaskGroupData>;
 
 // A taskgroup is 'dead' when nothing can cause it to fail; only members can.
 fn taskgroup_is_dead(tg: &TaskGroupData) -> bool {