diff options
| author | bors <bors@rust-lang.org> | 2014-06-04 20:41:44 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-04 20:41:44 -0700 |
| commit | 422d54bed212b4f0356fb56bbc31c8deef7a6b77 (patch) | |
| tree | b343a08725e1e61bb02b3a0fa1427204e7a47587 /src/libstd/lib.rs | |
| parent | 193574ae1e3881f95afb8b3e385a9e410ac6798a (diff) | |
| parent | 896cfcc67fb8d3e53a5dcf138f79909891bf940e (diff) | |
| download | rust-422d54bed212b4f0356fb56bbc31c8deef7a6b77.tar.gz rust-422d54bed212b4f0356fb56bbc31c8deef7a6b77.zip | |
auto merge of #14610 : alexcrichton/rust/issue-14008, r=brson
This commit removes the <M: Any + Send> type parameter from Option::expect in favor of just taking a hard-coded `&str` argument. This allows this function to move into libcore. Previous code using strings with `expect` will continue to work, but code using this implicitly to transmit task failure will need to unwrap manually with a `match` statement. [breaking-change] Closes #14008
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index cde1a7335a5..db84a724adb 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -155,6 +155,7 @@ pub use core::simd; pub use core::tuple; #[cfg(not(test))] pub use core::ty; pub use core::result; +pub use core::option; pub use alloc::owned; pub use alloc::rc; @@ -219,10 +220,6 @@ pub mod num; pub mod to_str; pub mod hash; -/* Common data structures */ - -pub mod option; - /* Tasks and communication */ pub mod task; |
