mozilla/rust — pull request #14610 by alexcrichton (2014-06-02 22:52:03+00:00)
Title: std: Remove generics from Option::expect

This commit removes the 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