about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-08-03 17:59:37 +0500
committerKivooeo <Kivooeo123@gmail.com>2025-08-03 17:59:37 +0500
commit754654d5a98a81a2f4f033a1cf4b2f9e7bb55f06 (patch)
tree54951d35e434e46b086d850d10a488d1aae03b42
parent889701db1ff614160314734fe4138c2f820a95bb (diff)
downloadrust-754654d5a98a81a2f4f033a1cf4b2f9e7bb55f06.tar.gz
rust-754654d5a98a81a2f4f033a1cf4b2f9e7bb55f06.zip
rename rust_panic_without_hook
-rw-r--r--library/std/src/panic.rs2
-rw-r--r--library/std/src/panicking.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs
index 234fb284a59..913ef72f674 100644
--- a/library/std/src/panic.rs
+++ b/library/std/src/panic.rs
@@ -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.
diff --git a/library/std/src/panicking.rs b/library/std/src/panicking.rs
index 7873049d20b..bb399fc1773 100644
--- a/library/std/src/panicking.rs
+++ b/library/std/src/panicking.rs
@@ -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>);