]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14610 : alexcrichton/rust/issue-14008, r=brson
authorbors <bors@rust-lang.org>
Thu, 5 Jun 2014 03:41:44 +0000 (20:41 -0700)
committerbors <bors@rust-lang.org>
Thu, 5 Jun 2014 03:41:44 +0000 (20:41 -0700)
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

1  2 
src/libstd/lib.rs
src/libstd/slice.rs

Simple merge
Simple merge