add std::panic::abort_unwind

This commit is contained in:
Christopher Durham 2024-09-14 01:41:00 -04:00 committed by GitHub
parent de66d3aa2b
commit 7e7ccb25b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,6 +283,9 @@ impl<K, V, S> UnwindSafe for collections::HashMap<K, V, S>
{ {
} }
#[unstable(feature = "abort_unwind", issue = "130338")]
pub use core::panic::abort_unwind;
/// Invokes a closure, capturing the cause of an unwinding panic if one occurs. /// Invokes a closure, capturing the cause of an unwinding panic if one occurs.
/// ///
/// This function will return `Ok` with the closure's result if the closure /// This function will return `Ok` with the closure's result if the closure