Add comment.
This commit is contained in:
parent
2a14add94d
commit
83a0d71e6d
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
)+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue