mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
14 lines
481 B
Text
14 lines
481 B
Text
if_chain! {
|
|
if let StmtKind::Local(ref local) = stmt.kind;
|
|
if let Some(ref init) = local.init;
|
|
if let ExprKind::Call(ref func, ref args) = init.kind;
|
|
if let ExprKind::Path(ref qpath) = func.kind;
|
|
if match_qpath(qpath, &["std", "mem", "transmute"]);
|
|
if args.len() == 1;
|
|
if let ExprKind::Path(ref qpath1) = args[0].kind;
|
|
if match_qpath(qpath1, &["ZPTR"]);
|
|
if let PatKind::Wild = local.pat.kind;
|
|
then {
|
|
// report your lint here
|
|
}
|
|
}
|