Skip to content

Commit 221aea7

Browse files
committed
add MacCall
1 parent 68373c0 commit 221aea7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,12 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
498498
(Pat::Str(""), Pat::Str(""))
499499
}
500500
},
501+
TyKind::MacCall(_) => (Pat::Str(""), Pat::MultiStr(&[")", "]", "}"])), // closing parens of the invocation
501502

502503
// experimental/placeholder tys
503504
TyKind::Pat(..) | TyKind::CVarArgs | TyKind::Dummy | TyKind::Err(_) => (Pat::Str(""), Pat::Str("")),
504505

505-
TyKind::ImplicitSelf | TyKind::Typeof(_) | _ => (Pat::Str(""), Pat::Str("")),
506+
TyKind::ImplicitSelf | TyKind::Typeof(_) => (Pat::Str(""), Pat::Str("")),
506507
}
507508
}
508509

0 commit comments

Comments
 (0)