From ba3eebd41db384c2a46535e8db8c7b2337d55f0b Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sun, 23 Sep 2012 04:39:27 -0700 Subject: Make it illegal to use modes in a fn signature with providing an explicit variable name. (Step one to changing the defaults) First step to #3535 --- src/libcore/task/local_data.rs | 2 +- src/libcore/task/spawn.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore/task') diff --git a/src/libcore/task/local_data.rs b/src/libcore/task/local_data.rs index 3a85055eb02..d91783284c0 100644 --- a/src/libcore/task/local_data.rs +++ b/src/libcore/task/local_data.rs @@ -43,7 +43,7 @@ use local_data_priv::{ * * These two cases aside, the interface is safe. */ -type LocalDataKey = &fn(+@T); +type LocalDataKey = &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 40364acf29a..21f217d57f4 100644 --- a/src/libcore/task/spawn.rs +++ b/src/libcore/task/spawn.rs @@ -82,7 +82,7 @@ fn taskset_remove(tasks: &mut TaskSet, task: *rust_task) { let was_present = tasks.remove(&task); assert was_present; } -fn taskset_each(tasks: &TaskSet, blk: fn(+*rust_task) -> bool) { +fn taskset_each(tasks: &TaskSet, blk: fn(+v: *rust_task) -> bool) { tasks.each_key(|k| blk(*k)) } -- cgit 1.4.1-3-g733a5