Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7914389

Browse files
author
Askar Safin
committed
Updated docs on#[panic_handler] inlibrary/core/src/lib.rs
1 parent2a5e5b8 commit7914389

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎core/src/lib.rs‎

Lines changed: 2 additions & 5 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp