diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-07 23:18:39 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-08 20:07:44 +0200 |
| commit | e6f77a178719215906d881537e789ad1746de83f (patch) | |
| tree | e4a3070379e52433fc686abc195d8672d4a9361e /compiler/rustc_passes/src | |
| parent | 0157cc977fd71297ce73e2f249321f5ba2555d42 (diff) | |
| download | rust-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.rs | 3 |
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(); }); } } |
