about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAskar Safin <safinaskar@gmail.com>2024-06-19 21:19:20 +0300
committerAskar Safin <safinaskar@gmail.com>2024-06-29 15:59:52 +0300
commit28ba5e4124659107bd0ed08ba5c480d0e71c3aa1 (patch)
treedd63ac7c7509d17edcc7e3755b3c30d715a6b718
parent894f7a4ba6554d3797404bbf550d9919df060b97 (diff)
downloadrust-28ba5e4124659107bd0ed08ba5c480d0e71c3aa1.tar.gz
rust-28ba5e4124659107bd0ed08ba5c480d0e71c3aa1.zip
Updated docs on `#[panic_handler]` in `library/core/src/lib.rs`
-rw-r--r--library/core/src/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs
index ef28bc99c4f..4bc0e37800e 100644
--- a/library/core/src/lib.rs
+++ b/library/core/src/lib.rs
@@ -34,12 +34,9 @@
 //!   Rust user code is to call the functions provided by this library instead (such as
 //!   `ptr::copy`).
 //!
-//! * `rust_begin_panic` - This function takes four arguments, a
-//!   `fmt::Arguments`, a `&'static str`, and two `u32`'s. These four arguments
-//!   dictate the panic message, the file at which panic was invoked, and the
-//!   line and column inside the file. It is up to consumers of this core
+//! * Panic handler - This function takes one argument, a `&panic::PanicInfo`. It is up to consumers of this core
 //!   library to define this panic function; it is only required to never
-//!   return. This requires a `lang` attribute named `panic_impl`.
+//!   return. You should mark your implementation using `#[panic_handler]`.
 //!
 //! * `rust_eh_personality` - is used by the failure mechanisms of the
 //!    compiler. This is often mapped to GCC's personality function, but crates