diff options
| author | bors <bors@rust-lang.org> | 2013-11-27 09:57:05 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-27 09:57:05 -0800 |
| commit | e4136bd552bc7bf2b83ceb5d114f9a254bfa2b01 (patch) | |
| tree | 3b5accbf93dabd0921e46e326918a1c0e5bef263 /src/libstd/task/spawn.rs | |
| parent | a6fc577ab580d09f05bb9b545b6a6511cfcb0a8f (diff) | |
| parent | 5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c (diff) | |
| download | rust-e4136bd552bc7bf2b83ceb5d114f9a254bfa2b01.tar.gz rust-e4136bd552bc7bf2b83ceb5d114f9a254bfa2b01.zip | |
auto merge of #10662 : alexcrichton/rust/thread-detach, r=pcwalton
This has one commit from a separate pull request (because these commits depend on that one), but otherwise the extra details can be found in the commit messages. The `rt::thread` module has been generally cleaned up for everyday safe usage (and it's a bug if it's not safe).
Diffstat (limited to 'src/libstd/task/spawn.rs')
| -rw-r--r-- | src/libstd/task/spawn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 6c1c28c9805..198fe596a89 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -139,7 +139,7 @@ pub fn spawn_raw(mut opts: TaskOpts, f: proc()) { let join_task = do Task::build_child(None) { debug!("running join task"); let thread_port = thread_port_cell.take(); - let thread: Thread = thread_port.recv(); + let thread: Thread<()> = thread_port.recv(); thread.join(); }; |
