Skip to content

Commit 2b8bf0d

Browse files
Rollup merge of #95949 - SoniEx2:patch-5, r=m-ou-se
Implement Default for AssertUnwindSafe Trait impls are still insta-stable yeah...?
2 parents fe49981 + 8d5a496 commit 2b8bf0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/core/src/panic/unwind_safe.rs

+7
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ impl<T: fmt::Debug> fmt::Debug for AssertUnwindSafe<T> {
279279
}
280280
}
281281

282+
#[stable(feature = "assertunwindsafe_default", since = "1.62.0")]
283+
impl<T: Default> Default for AssertUnwindSafe<T> {
284+
fn default() -> Self {
285+
Self(Default::default())
286+
}
287+
}
288+
282289
#[stable(feature = "futures_api", since = "1.36.0")]
283290
impl<F: Future> Future for AssertUnwindSafe<F> {
284291
type Output = F::Output;

0 commit comments

Comments
 (0)