Improve suggestion for panic!(format!(..)).
This commit is contained in:
parent
1abc1e2a43
commit
a428ab17ab
3 changed files with 32 additions and 1 deletions
|
@ -107,6 +107,7 @@ macro_rules! vec {
|
|||
/// ```
|
||||
#[macro_export]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_diagnostic_item = "format_macro"]
|
||||
macro_rules! format {
|
||||
($($arg:tt)*) => {{
|
||||
let res = $crate::fmt::format($crate::__export::format_args!($($arg)*));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue