use crate::{_reexport, _tags};
_reexport! { rust: core::panic, location: "code/panic", tag: _tags!(code),
doc: "Passed to `#[panic_handler]` in `no_std`, carries a formatted message.",
PanicInfo
}
_reexport! { rust: core::panic, location: "code/panic", tag: _tags!(code),
doc: "A struct containing information about the location of a panic.",
@Location as PanicLocation
}
_reexport! { rust: core::panic, location: "code/panic", tag: _tags!(code assert),
doc: "A simple wrapper around a type to assert that it is unwind safe.",
@AssertUnwindSafe as PanicAssertUnwindSafe
}
_reexport! { rust: core::panic, location: "code/panic", tag: _tags!(code lifetime),
doc: "A marker trait which represents a shared reference considered unwind safe.",
@RefUnwindSafe as PanicRefUnwindSafe
}
_reexport! { rust: core::panic, location: "code/panic", tag: _tags!(code),
doc: "A marker trait which represents \"panic safe\" types in Rust.",
@UnwindSafe as PanicUnwindSafe
}
_reexport! { rust: core, location: "code/panic", tag: _tags!(code),
doc: "Indicates unfinished code.", todo }
_reexport! { rust: core, location: "code/panic", tag: _tags!(code),
doc: "Indicates unreachable code.", unreachable }
_reexport! { rust: core, location: "code/panic", tag: _tags!(code),
doc: "Indicates unimplemented code.", unimplemented }
#[doc = crate::_tags!(code)]
#[doc = crate::_doc_location!("code/panic")]
#[doc = "*Re-exported from [`core::panic`][macro@::core::panic]*."]
#[doc = "\n\n---"]
#[macro_export]
#[cfg_attr(cargo_primary_package, doc(hidden))]
macro_rules! panic_ { ($($tt:tt)*) => { core::panic![$($tt)*] } }
#[doc(inline)]
pub use panic_;