]> git.proxmox.com Git - rustc.git/blobdiff - library/core/src/panic/unwind_safe.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / library / core / src / panic / unwind_safe.rs
index 95be879e319aac0b7b51bf7ca0262e76de7a3715..f2948aac3c235c5914cc878bf24dcdf774dc5a9f 100644 (file)
@@ -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;