Skip to content

Commit

Permalink
Implement Default for AssertUnwindSafe
Browse files Browse the repository at this point in the history
Trait impls are still insta-stable yeah...?
  • Loading branch information
SoniEx2 committed Apr 11, 2022
1 parent 625e4dd commit 8d5a496
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 8d5a496

Please sign in to comment.