// avoid code bloat at the call sites as much as possible
avoid code bloat at the call sites as much as possible
avoid code bloat at the call sites as much as possible
pub fn begin_panic<M: Any + Send>(msg: M, file_line: &(&'static str, u32)) -> ! {
    // Note that this should be the only allocation performed in this code path.
    // Currently this means that panic!() on OOM will invoke this code path,
    // but then again we're not really ready for panic on OOM anyway. If
    // we do start doing this, then we should propagate this allocation to
    // be performed in the parent of this thread instead of the thread that's
    // panicking.
    rust_panic_with_hook(Box::new(msg), file_line)
}
pub fn begin_panic < M : Any + Send > ( msg : M , file_line : & ( & ' static str , u32 ) ) -> ! { // Note that this should be the only allocation performed in this code path. // Currently this means that panic!() on OOM will invoke this code path, // but then again we're not really ready for panic on OOM anyway. If // we do start doing this, then we should propagate this allocation to // be performed in the parent of this thread instead of the thread that's // panicking. rust_panic_with_hook ( Box :: new ( msg ) , file_line ) }
avoid code bloat at the call sites as much as possible
avoid code bloat at the call sites as much as possible
msg
M
file_line
&(&'static str, u32)