Skip to content

Commit baf09e2

Browse files
committed
OpaqueDef is called ImplTrait
1 parent 73d04ba commit baf09e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
446446
TyKind::Tup([]) => (Pat::Str(")"), Pat::Str("(")),
447447
TyKind::Tup([ty]) => ast_ty_search_pat(ty),
448448
TyKind::Tup([head, .., tail]) => (ast_ty_search_pat(head).0, ast_ty_search_pat(tail).1),
449-
TyKind::OpaqueDef(..) => (Pat::Str("impl"), Pat::Str("")),
449+
TyKind::ImplTrait(..) => (Pat::Str("impl"), Pat::Str("")),
450450
TyKind::Path(qself_path, path) => {
451451
let start = if qself_path.is_some() {
452452
Pat::Str("<")

0 commit comments

Comments
 (0)