diff --git a/library/core/src/panicking.rs b/library/core/src/panicking.rs index fa758ebf4667..3609dd1fe2e0 100644 --- a/library/core/src/panicking.rs +++ b/library/core/src/panicking.rs @@ -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)); } )+