1
Fork 0

Rollup merge of #89649 - matthiaskrgr:clippycompl, r=jyn514

clippy::complexity fixes
This commit is contained in:
Guillaume Gomez 2021-10-08 22:30:40 +02:00 committed by GitHub
commit 836597a881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 23 additions and 30 deletions

View file

@ -1767,8 +1767,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();
});
}
}