Skip to content

Commit 457e020

Browse files
committed
add misc kinds: Pat, CVarArgs, Typeof, Dummy, Err
1 parent 17c0cab commit 457e020

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,18 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
521521
},
522522

523523
// implicit, so has no contents to match against
524-
TyKind::ImplicitSelf | _ => (Pat::Str(""), Pat::Str("")),
524+
TyKind::ImplicitSelf
525+
526+
// experimental
527+
|TyKind::Pat(..)
528+
529+
// unused
530+
| TyKind::CVarArgs
531+
| TyKind::Typeof(_)
532+
533+
// placeholder
534+
| TyKind::Dummy
535+
| TyKind::Err(_) => (Pat::Str(""), Pat::Str("")),
525536
}
526537
}
527538

0 commit comments

Comments
 (0)