diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-06-28 19:01:55 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-06-28 19:02:48 -0400 |
| commit | 6fc730baf6b3d156e7be7521cd60f352f2c0ea93 (patch) | |
| tree | e472aa6ab0779ae281a50bbd05d8f86217f8bb67 /src/libcore/task.rs | |
| parent | d91e3109824af5460bc2476bc6dbd74f8b0100d4 (diff) | |
| download | rust-6fc730baf6b3d156e7be7521cd60f352f2c0ea93.tar.gz rust-6fc730baf6b3d156e7be7521cd60f352f2c0ea93.zip | |
Cleanup failure handling around rust_new_task_in_sched - closes #2668
Diffstat (limited to 'src/libcore/task.rs')
| -rw-r--r-- | src/libcore/task.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs index 51f4a7c23cb..9f379bbd94a 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -538,6 +538,7 @@ fn spawn_raw(opts: task_opts, +f: fn~()) { new_task_in_new_sched(sched_opts) } }; + assert !new_task.is_null(); option::iter(opts.notify_chan) {|c| // FIXME (#1087): Would like to do notification in Rust |
