]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
[rust.git] / compiler / rustc_macros / src / diagnostics / subdiagnostic.rs
index 767db3673225988f7bbe02621bfab31cb76b56db..baffd3cec9c55394dfea79608bb7c3fe840e04c9 100644 (file)
@@ -198,8 +198,7 @@ fn identify_kind(&mut self) -> Result<Vec<(SubdiagnosticKind, Path)>, Diagnostic
                 throw_span_err!(
                     attr.span().unwrap(),
                     &format!(
-                        "diagnostic slug must be first argument of a `#[{}(...)]` attribute",
-                        name
+                        "diagnostic slug must be first argument of a `#[{name}(...)]` attribute"
                     )
                 );
             };