Skip to content

Commit 65edbc5

Browse files
authored
Rollup merge of rust-lang#144903 - Kivooeo:panic_handler-is-not-begin, r=m-ou-se
Rename `begin_panic_handler` to `panic_handler` Part of rust-lang#116005
2 parents b6e924e + 6a85584 commit 65edbc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/panicking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ pub fn panicking() -> bool {
628628
/// Entry point of panics from the core crate (`panic_impl` lang item).
629629
#[cfg(not(any(test, doctest)))]
630630
#[panic_handler]
631-
pub fn begin_panic_handler(info: &core::panic::PanicInfo<'_>) -> ! {
631+
pub fn panic_handler(info: &core::panic::PanicInfo<'_>) -> ! {
632632
struct FormatStringPayload<'a> {
633633
inner: &'a core::panic::PanicMessage<'a>,
634634
string: Option<String>,

0 commit comments

Comments
 (0)