Skip to content

Commit 68373c0

Browse files
committed
add Pat, CVarArgs, Dummy, Err
1 parent c81ad8e commit 68373c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,10 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
498498
(Pat::Str(""), Pat::Str(""))
499499
}
500500
},
501+
502+
// experimental/placeholder tys
503+
TyKind::Pat(..) | TyKind::CVarArgs | TyKind::Dummy | TyKind::Err(_) => (Pat::Str(""), Pat::Str("")),
504+
501505
TyKind::ImplicitSelf | TyKind::Typeof(_) | _ => (Pat::Str(""), Pat::Str("")),
502506
}
503507
}

0 commit comments

Comments
 (0)