This function is used instead of panic_fmt in const eval.
The underlying implementation of core’s panic!
macro when no formatting is used.
The entry point for panicking with a formatted message.
Like panic
, but without unwinding and track_caller to reduce the impact on codesize on the caller.
If you want #[track_caller]
for nicer errors, call panic_nounwind_fmt
directly.
Like panic_fmt
, but for non-unwinding panics.
Like panic_nounwind
, but also inhibits showing a backtrace.
This exists solely for the 2015 edition panic!
macro to trigger
a lint on panic!(my_str_variable);
.