document that panic_impl
never passes the FFI boundary
This commit is contained in:
parent
b442348d53
commit
eb19361416
1 changed files with 2 additions and 1 deletions
|
@ -42,9 +42,10 @@ use fmt;
|
|||
#[cfg(not(stage0))]
|
||||
use panic::{Location, PanicInfo};
|
||||
|
||||
// NOTE This function never crosses the FFI boundary; it's a Rust-to-Rust call
|
||||
#[cfg(not(stage0))]
|
||||
#[allow(improper_ctypes)] // PanicInfo contains a trait object which is not FFI safe
|
||||
extern "C" {
|
||||
extern "Rust" {
|
||||
#[lang = "panic_impl"]
|
||||
fn panic_impl(pi: &PanicInfo) -> !;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue