Rollup merge of #95949 - SoniEx2:patch-5, r=m-ou-se

Implement Default for AssertUnwindSafe

Trait impls are still insta-stable yeah...?
This commit is contained in:
Guillaume Gomez 2022-04-26 13:22:27 +02:00 committed by GitHub
commit 2b8bf0d530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,6 +279,13 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
}
}
#[stable(feature = "assertunwindsafe_default", since = "1.62.0")]
impl<T: Default> Default for AssertUnwindSafe<T> {
fn default() -> Self {
Self(Default::default())
}
}
#[stable(feature = "futures_api", since = "1.36.0")]
impl<F: Future> Future for AssertUnwindSafe<F> {
type Output = F::Output;