We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0c424 commit daa371dCopy full SHA for daa371d
library/alloc/src/macros.rs
@@ -107,7 +107,7 @@ macro_rules! vec {
107
/// ```
108
#[macro_export]
109
#[stable(feature = "rust1", since = "1.0.0")]
110
-#[rustc_diagnostic_item = "format_macro"]
+#[cfg_attr(not(test), rustc_diagnostic_item = "format_macro")]
111
macro_rules! format {
112
($($arg:tt)*) => {{
113
let res = $crate::fmt::format($crate::__export::format_args!($($arg)*));
0 commit comments