We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0692db1 commit 0d07b4cCopy full SHA for 0d07b4c
library/core/src/panicking.rs
@@ -234,7 +234,8 @@ fn panic_in_cleanup() -> ! {
234
#[rustc_const_unstable(feature = "core_panic", issue = "none")]
235
pub const fn const_panic_fmt(fmt: fmt::Arguments<'_>) -> ! {
236
if let Some(msg) = fmt.as_str() {
237
- panic_str(msg);
+ // The panic_display function is hooked by conost eval.
238
+ panic_display(&msg);
239
} else {
240
// SAFETY: This is only evaluated at compile time, which reliably
241
// handles this UB (in case this branch turns out to be reachable
0 commit comments