Skip to content

Commit 2b46390

Browse files
committed
add ImplicitSelf
1 parent 4de7e80 commit 2b46390

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,10 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
502502
}
503503
},
504504
TyKind::MacCall(_) => (Pat::Str(""), Pat::MultiStr(&[")", "]", "}"])), // closing parens of the invocation
505-
_ => (Pat::Str(""), Pat::Str("")),
505+
506+
// implicit, so has no contents to match against
507+
TyKind::ImplicitSelf
508+
| _ => (Pat::Str(""), Pat::Str("")),
506509
}
507510
}
508511

0 commit comments

Comments
 (0)