Skip to content

Commit f136bc7

Browse files
committed
add misc kinds: Pat, CVarArgs, Typeof, Dummy, Err
1 parent 2b46390 commit f136bc7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,17 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
505505

506506
// implicit, so has no contents to match against
507507
TyKind::ImplicitSelf
508-
| _ => (Pat::Str(""), Pat::Str("")),
508+
509+
// experimental
510+
|TyKind::Pat(..)
511+
512+
// unused
513+
| TyKind::CVarArgs
514+
| TyKind::Typeof(_)
515+
516+
// placeholder
517+
| TyKind::Dummy
518+
| TyKind::Err(_) => (Pat::Str(""), Pat::Str("")),
509519
}
510520
}
511521

0 commit comments

Comments
 (0)