Skip to content

Commit 17c0cab

Browse files
committed
add ImplicitSelf
1 parent bbd0d46 commit 17c0cab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,9 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
519519
};
520520
(start, Pat::Str(""))
521521
},
522-
_ => (Pat::Str(""), Pat::Str("")),
522+
523+
// implicit, so has no contents to match against
524+
TyKind::ImplicitSelf | _ => (Pat::Str(""), Pat::Str("")),
523525
}
524526
}
525527

0 commit comments

Comments
 (0)