Skip to content

Commit 83a0d71

Browse files
committed
Add comment.
1 parent 2a14add commit 83a0d71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/panicking.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ macro_rules! panic_const {
171171
#[rustc_const_stable_indirect] // must follow stable const rules since it is exposed to stable
172172
#[lang = stringify!($lang)]
173173
pub const fn $lang() -> ! {
174+
// See the comment in `panic(&'static str)` for why we use `Arguments::from_str` here.
174175
panic_fmt(fmt::Arguments::from_str($message));
175176
}
176177
)+

0 commit comments

Comments
 (0)