We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4c86cf commit ca211eaCopy full SHA for ca211ea
library/core/src/fmt/mod.rs
@@ -320,7 +320,7 @@ impl<'a> Arguments<'a> {
320
#[rustc_const_unstable(feature = "const_fmt_arguments_new", issue = "none")]
321
pub const fn new_const(pieces: &'a [&'static str]) -> Self {
322
if pieces.len() > 1 {
323
- panic!("invalid args");
+ crate::panicking::panic("invalid args");
324
}
325
Arguments { pieces, fmt: None, args: &[] }
326
@@ -330,7 +330,7 @@ impl<'a> Arguments<'a> {
330
#[inline]
331
pub fn new_v1(pieces: &'a [&'static str], args: &'a [rt::Argument<'a>]) -> Arguments<'a> {
332
if pieces.len() < args.len() || pieces.len() > args.len() + 1 {
333
334
335
Arguments { pieces, fmt: None, args }
336
0 commit comments