Add comment.

This commit is contained in:
Mara Bos 2025-11-12 14:33:41 +01:00
parent 2a14add94d
commit 83a0d71e6d

View file

@ -171,6 +171,7 @@ macro_rules! panic_const {
#[rustc_const_stable_indirect] // must follow stable const rules since it is exposed to stable
#[lang = stringify!($lang)]
pub const fn $lang() -> ! {
// See the comment in `panic(&'static str)` for why we use `Arguments::from_str` here.
panic_fmt(fmt::Arguments::from_str($message));
}
)+