Remove uncessary parens in closure body with unused lint

This commit is contained in:
yukang
2025-06-29 11:40:59 +08:00
parent e43d139a82
commit 93db9e7ee0
15 changed files with 160 additions and 27 deletions

View File

@@ -2206,7 +2206,7 @@ impl<'a> Parser<'a> {
if self.look_ahead(1, |t| *t == token::Bang) && self.look_ahead(2, |t| t.is_ident()) {
return IsMacroRulesItem::Yes { has_bang: true };
} else if self.look_ahead(1, |t| (t.is_ident())) {
} else if self.look_ahead(1, |t| t.is_ident()) {
// macro_rules foo
self.dcx().emit_err(errors::MacroRulesMissingBang {
span: macro_rules_span,