about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-08-07 19:36:36 -0500
committerGitHub <noreply@github.com>2025-08-07 19:36:36 -0500
commit2e0e1831478fc48cc2da1a53ee1651c7e8683e42 (patch)
treeb2b0225cb03dc45fa1dfed472944271877562ff7 /library/std/src
parent1d71dc4f26f5603f4b4c2e18cc2438849bb5b84e (diff)
parentb7f5392946d77d46994ba08261c09005fb2118c6 (diff)
downloadrust-2e0e1831478fc48cc2da1a53ee1651c7e8683e42.tar.gz
rust-2e0e1831478fc48cc2da1a53ee1651c7e8683e42.zip
Rollup merge of #144903 - Kivooeo:panic_handler-is-not-begin, r=m-ou-se
Rename `begin_panic_handler` to `panic_handler`

Part of https://github.com/rust-lang/rust/issues/116005
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/panicking.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/panicking.rs b/library/std/src/panicking.rs
index 547906ca7dc..87a3fc80dfa 100644
--- a/library/std/src/panicking.rs
+++ b/library/std/src/panicking.rs
@@ -628,7 +628,7 @@ pub fn panicking() -> bool {
 /// Entry point of panics from the core crate (`panic_impl` lang item).
 #[cfg(not(any(test, doctest)))]
 #[panic_handler]
-pub fn begin_panic_handler(info: &core::panic::PanicInfo<'_>) -> ! {
+pub fn panic_handler(info: &core::panic::PanicInfo<'_>) -> ! {
     struct FormatStringPayload<'a> {
         inner: &'a core::panic::PanicMessage<'a>,
         string: Option<String>,