]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_passes/src/check_attr.rs
Rollup merge of #88789 - the8472:rm-zip-bound, r=JohnTitor
[rust.git] / compiler / rustc_passes / src / check_attr.rs
index 1815302101f0e0c68af2f5657d76ffbdf8809f10..e5fbddda74427a8e0d60b8d0c4a5681854e01bb0 100644 (file)
@@ -1767,8 +1767,7 @@ fn check_macro_use(&self, hir_id: HirId, attr: &Attribute, target: Target) {
     fn check_macro_export(&self, hir_id: HirId, attr: &Attribute, target: Target) {
         if target != Target::MacroDef {
             self.tcx.struct_span_lint_hir(UNUSED_ATTRIBUTES, hir_id, attr.span, |lint| {
-                lint.build(&format!("`#[macro_export]` only has an effect on macro definitions"))
-                    .emit();
+                lint.build("`#[macro_export]` only has an effect on macro definitions").emit();
             });
         }
     }