about summary refs log tree commit diff
path: root/compiler/rustc_passes/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-07 23:18:39 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2021-10-08 20:07:44 +0200
commite6f77a178719215906d881537e789ad1746de83f (patch)
treee4a3070379e52433fc686abc195d8672d4a9361e /compiler/rustc_passes/src
parent0157cc977fd71297ce73e2f249321f5ba2555d42 (diff)
downloadrust-e6f77a178719215906d881537e789ad1746de83f.tar.gz
rust-e6f77a178719215906d881537e789ad1746de83f.zip
clippy::complexity fixes
Diffstat (limited to 'compiler/rustc_passes/src')
-rw-r--r--compiler/rustc_passes/src/check_attr.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs
index e7b2a018680..ee111fb4e9a 100644
--- a/compiler/rustc_passes/src/check_attr.rs
+++ b/compiler/rustc_passes/src/check_attr.rs
@@ -1766,8 +1766,7 @@ impl CheckAttrVisitor<'tcx> {
     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();
             });
         }
     }