Skip to content

Commit 8f4d0c2

Browse files
committed
Improve suggestion for panic!(format!(..)).
1 parent e61d167 commit 8f4d0c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

alloc/src/macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ macro_rules! vec {
107107
/// ```
108108
#[macro_export]
109109
#[stable(feature = "rust1", since = "1.0.0")]
110+
#[rustc_diagnostic_item = "format_macro"]
110111
macro_rules! format {
111112
($($arg:tt)*) => {{
112113
let res = $crate::fmt::format($crate::__export::format_args!($($arg)*));

0 commit comments

Comments
 (0)