mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
rename rust_panic_without_hook
This commit is contained in:
@@ -388,7 +388,7 @@ pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
|
||||
/// ```
|
||||
#[stable(feature = "resume_unwind", since = "1.9.0")]
|
||||
pub fn resume_unwind(payload: Box<dyn Any + Send>) -> ! {
|
||||
panicking::rust_panic_without_hook(payload)
|
||||
panicking::resume_unwind(payload)
|
||||
}
|
||||
|
||||
/// Makes all future panics abort directly without running the panic hook or unwinding.
|
||||
|
||||
@@ -861,7 +861,7 @@ fn rust_panic_with_hook(
|
||||
/// This is the entry point for `resume_unwind`.
|
||||
/// It just forwards the payload to the panic runtime.
|
||||
#[cfg_attr(feature = "panic_immediate_abort", inline)]
|
||||
pub fn rust_panic_without_hook(payload: Box<dyn Any + Send>) -> ! {
|
||||
pub fn resume_unwind(payload: Box<dyn Any + Send>) -> ! {
|
||||
panic_count::increase(false);
|
||||
|
||||
struct RewrapBox(Box<dyn Any + Send>);
|
||||
|
||||
Reference in New Issue
Block a user