diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-23 04:39:27 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-23 13:30:13 -0500 |
| commit | ba3eebd41db384c2a46535e8db8c7b2337d55f0b (patch) | |
| tree | 0a746d1b95cd85358fa07aca67683524c8dd1f79 /src/libcore/task/spawn.rs | |
| parent | 2e7ddee8239ceba5989c5dfd83e9a935775b00d1 (diff) | |
| download | rust-ba3eebd41db384c2a46535e8db8c7b2337d55f0b.tar.gz rust-ba3eebd41db384c2a46535e8db8c7b2337d55f0b.zip | |
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
Diffstat (limited to 'src/libcore/task/spawn.rs')
| -rw-r--r-- | src/libcore/task/spawn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)) } |
