Skip to content

Commit

Permalink
Rollup merge of rust-lang#95949 - SoniEx2:patch-5, r=m-ou-se
Browse files Browse the repository at this point in the history
Implement Default for AssertUnwindSafe

Trait impls are still insta-stable yeah...?
  • Loading branch information
Dylan-DPC authored Apr 26, 2022
2 parents 0aab510 + 8d5a496 commit 9a92b50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/core/src/panic/unwind_safe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ impl<T: fmt::Debug> fmt::Debug for AssertUnwindSafe<T> {
}
}

#[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;
Expand Down

0 comments on commit 9a92b50

Please sign in to comment.