about summary refs log tree commit diff
path: root/src/lib/task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/task.rs')
-rw-r--r--src/lib/task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/task.rs b/src/lib/task.rs
index 8808f0c8d02..903e4b34a81 100644
--- a/src/lib/task.rs
+++ b/src/lib/task.rs
@@ -136,7 +136,7 @@ fn spawn_inner2<~T>(-data: T, f: fn#(T),
 
 // FIXME: This is the old spawn function that spawns a shared closure.
 // It is a hack and needs to be rewritten.
-fn unsafe_spawn_inner(-thunk: fn(),
+fn unsafe_spawn_inner(-thunk: fn@(),
                       notify: option<comm::chan<task_notification>>) ->
    task_id unsafe {
     let id = rustrt::new_task();