We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a14add commit 83a0d71Copy full SHA for 83a0d71
library/core/src/panicking.rs
@@ -171,6 +171,7 @@ macro_rules! panic_const {
171
#[rustc_const_stable_indirect] // must follow stable const rules since it is exposed to stable
172
#[lang = stringify!($lang)]
173
pub const fn $lang() -> ! {
174
+ // See the comment in `panic(&'static str)` for why we use `Arguments::from_str` here.
175
panic_fmt(fmt::Arguments::from_str($message));
176
}
177
)+
0 commit comments