Skip to content

Commit 7914389

Browse files
author
Askar Safin
committed
Updated docs on #[panic_handler] in library/core/src/lib.rs
1 parent 2a5e5b8 commit 7914389

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/src/lib.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,9 @@
3434
//! Rust user code is to call the functions provided by this library instead (such as
3535
//! `ptr::copy`).
3636
//!
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
4138
//! 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]`.
4340
//!
4441
//! * `rust_eh_personality` - is used by the failure mechanisms of the
4542
//! compiler. This is often mapped to GCC's personality function, but crates

0 commit comments

Comments
 (0)