Updated docs on #[panic_handler] in library/core/src/lib.rs · model-checking/verify-rust-std@7914389 (original) (raw)

Original file line number Diff line number Diff line change
@@ -34,12 +34,9 @@
34 34 //! Rust user code is to call the functions provided by this library instead (such as
35 35 //! `ptr::copy`).
36 36 //!
37 -//! * `rust_begin_panic` - This function takes four arguments, a
38 -//! `fmt::Arguments`, a `&'static str`, and two `u32`'s. These four arguments
39 -//! dictate the panic message, the file at which panic was invoked, and the
40 -//! line and column inside the file. It is up to consumers of this core
37 +//! * Panic handler - This function takes one argument, a `&panic::PanicInfo`. It is up to consumers of this core
41 38 //! library to define this panic function; it is only required to never
42 -//! return. This requires a `lang` attribute named `panic_impl`.
39 +//! return. You should mark your implementation using `#[panic_handler]`.
43 40 //!
44 41 //! * `rust_eh_personality` - is used by the failure mechanisms of the
45 42 //! compiler. This is often mapped to GCC's personality function, but crates