Rework precise capturing syntax
This commit is contained in:
@@ -1268,7 +1268,7 @@ impl EarlyLintPass for UnusedParens {
|
||||
ast::TyKind::TraitObject(..) => {}
|
||||
ast::TyKind::BareFn(b)
|
||||
if self.with_self_ty_parens && b.generic_params.len() > 0 => {}
|
||||
ast::TyKind::ImplTrait(_, bounds, _) if bounds.len() > 1 => {}
|
||||
ast::TyKind::ImplTrait(_, bounds) if bounds.len() > 1 => {}
|
||||
_ => {
|
||||
let spans = if !ty.span.from_expansion() {
|
||||
r.span
|
||||
|
||||
Reference in New Issue
Block a user