Skip to content

Commit 4c6da13

Browse files
committed
OpaqueDef is called ImplTrait
1 parent 5d0c450 commit 4c6da13

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
@@ -443,7 +443,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
443443
TyKind::Tup([]) => (Pat::Str(")"), Pat::Str("(")),
444444
TyKind::Tup([ty]) => ast_ty_search_pat(ty),
445445
TyKind::Tup([head, .., tail]) => (ast_ty_search_pat(head).0, ast_ty_search_pat(tail).1),
446-
TyKind::OpaqueDef(..) => (Pat::Str("impl"), Pat::Str("")),
446+
TyKind::ImplTrait(..) => (Pat::Str("impl"), Pat::Str("")),
447447
TyKind::Path(qself_path, path) => {
448448
let start = if qself_path.is_some() {
449449
Pat::Str("<")

0 commit comments

Comments
 (0)