diff options
| author | Ralf Jung <post@ralfj.de> | 2019-11-24 11:26:07 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-11-24 11:26:07 +0100 |
| commit | 35ee6bd59b20954bfee4e8c02ea16fedb6faca04 (patch) | |
| tree | aa411bae5dbd0dc97741e05e99d277a352ee90cd /src/libstd | |
| parent | e41ced3f8d8e2f3f377ef931458e612d5f3d1f3f (diff) | |
| download | rust-35ee6bd59b20954bfee4e8c02ea16fedb6faca04.tar.gz rust-35ee6bd59b20954bfee4e8c02ea16fedb6faca04.zip | |
panicking comments
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/panicking.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/panicking.rs b/src/libstd/panicking.rs index f76969146fd..62cd190cf7a 100644 --- a/src/libstd/panicking.rs +++ b/src/libstd/panicking.rs @@ -294,7 +294,7 @@ pub fn panicking() -> bool { update_panic_count(0) != 0 } -/// Entry point of panic from the libcore crate. +/// Entry point of panic from the libcore crate (`panic_impl` lang item). #[cfg(not(test))] #[panic_handler] #[unwind(allowed)] @@ -380,7 +380,7 @@ fn continue_panic_fmt(info: &PanicInfo<'_>) -> ! { #[unstable(feature = "libstd_sys_internals", reason = "used by the panic! macro", issue = "0")] -#[cfg_attr(not(test), lang = "begin_panic")] +#[cfg_attr(not(test), lang = "begin_panic")] // lang item for CTFE panic support // never inline unless panic_immediate_abort to avoid code // bloat at the call sites as much as possible #[cfg_attr(not(feature="panic_immediate_abort"),inline(never))] |
