about summary refs log tree commit diff
path: root/src/libstd/rt/test.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-11-27 09:57:05 -0800
committerbors <bors@rust-lang.org>2013-11-27 09:57:05 -0800
commite4136bd552bc7bf2b83ceb5d114f9a254bfa2b01 (patch)
tree3b5accbf93dabd0921e46e326918a1c0e5bef263 /src/libstd/rt/test.rs
parenta6fc577ab580d09f05bb9b545b6a6511cfcb0a8f (diff)
parent5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c (diff)
downloadrust-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/rt/test.rs')
-rw-r--r--src/libstd/rt/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/test.rs b/src/libstd/rt/test.rs
index 867d997e98d..943b76dd1a0 100644
--- a/src/libstd/rt/test.rs
+++ b/src/libstd/rt/test.rs
@@ -336,7 +336,7 @@ pub fn spawntask_try(f: proc()) -> Result<(),()> {
 }
 
 /// Spawn a new task in a new scheduler and return a thread handle.
-pub fn spawntask_thread(f: proc()) -> Thread {
+pub fn spawntask_thread(f: proc()) -> Thread<()> {
 
     let f = Cell::new(f);