Skip to content

Commit bbd0d46

Browse files
committed
add MacCall
1 parent 0512002 commit bbd0d46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,14 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
511511
(Pat::Str(""), Pat::Str(""))
512512
}
513513
},
514+
TyKind::MacCall(mac_call) => {
515+
let start = if let Some(first) = mac_call.path.segments.first() {
516+
ident_search_pat(first.ident).0
517+
} else {
518+
Pat::Str("")
519+
};
520+
(start, Pat::Str(""))
521+
},
514522
_ => (Pat::Str(""), Pat::Str("")),
515523
}
516524
}

0 commit comments

Comments
 (0)