Auto merge of #31728 - Amanieu:recoversafe_into_inner, r=alexcrichton

This allows a `FnOnce` to be wrapped in an `AssertRecoverSafe`.
This commit is contained in:
bors 2016-02-18 10:35:25 +00:00
commit f075698ea5

View File

@ -193,6 +193,12 @@ impl<T> AssertRecoverSafe<T> {
pub fn new(t: T) -> AssertRecoverSafe<T> {
AssertRecoverSafe(t)
}
/// Consumes the `AssertRecoverSafe`, returning the wrapped value.
#[unstable(feature = "recover", reason = "awaiting feedback", issue = "27719")]
pub fn into_inner(self) -> T {
self.0
}
}
impl<T> Deref for AssertRecoverSafe<T> {