about summary refs log tree commit diff
path: root/src/libstd/task.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-01 11:12:16 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-07 08:16:14 -0700
commitd4b5d82a3356630ede4ce1b436cb59760be7b703 (patch)
tree8e690f9b6887b1a96ddb44385ef38c453fa7796b /src/libstd/task.rs
parenta156534a96a6c401b14c80618c247eaadf876eb7 (diff)
core: Add unwrap()/unwrap_err() methods to Result
These implementations must live in libstd right now because the fmt module has
not been migrated yet. This will occur in a later PR.

Just to be clear, there are new extension traits, but they are not necessary
once the std::fmt module has migrated to libcore, which is a planned migration
in the future.
Diffstat (limited to 'src/libstd/task.rs')
-rw-r--r--src/libstd/task.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs
index 23831e40a8b..2f7b31ae31d 100644
--- a/src/libstd/task.rs
+++ b/src/libstd/task.rs
@@ -50,6 +50,7 @@ use str::{Str, SendStr, IntoMaybeOwned};
 #[cfg(test)] use any::{AnyOwnExt, AnyRefExt};
 #[cfg(test)] use result;
 #[cfg(test)] use str::StrAllocating;
+#[cfg(test)] use realstd::result::ResultUnwrap;
 
 /// Indicates the manner in which a task exited.
 ///