Fix typo.
This commit is contained in:
parent
0d07b4c2ce
commit
667bba46b0
@ -234,7 +234,7 @@ fn panic_in_cleanup() -> ! {
|
||||
#[rustc_const_unstable(feature = "core_panic", issue = "none")]
|
||||
pub const fn const_panic_fmt(fmt: fmt::Arguments<'_>) -> ! {
|
||||
if let Some(msg) = fmt.as_str() {
|
||||
// The panic_display function is hooked by conost eval.
|
||||
// The panic_display function is hooked by const eval.
|
||||
panic_display(&msg);
|
||||
} else {
|
||||
// SAFETY: This is only evaluated at compile time, which reliably
|
||||
|
Loading…
Reference in New Issue
Block a user