From e586d2174bd732bcc4a430266f371fbb82b39398 Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Sun, 14 Aug 2016 13:33:53 +0200 Subject: Improve `No stdlib` and related Documentation --- src/libcore/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libcore') diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index fabb3900ec6..4949e66de54 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -42,6 +42,11 @@ //! line. 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_fmt`. +//! +//! * `rust_eh_personality` - is used by the failure mechanisms of the +//! compiler. This is often mapped to GCC's personality function, but crates +//! which do not trigger a panic can be assured that this function is never +//! called. The `lang` attribute is called `eh_personality`. // Since libcore defines many fundamental lang items, all tests live in a // separate crate, libcoretest, to avoid bizarre issues. -- cgit 1.4.1-3-g733a5