2019-03-07 07:07:01 -06:00
|
|
|
if_chain! {
|
2021-12-06 05:33:31 -06:00
|
|
|
if let StmtKind::Local(local) = stmt.kind;
|
|
|
|
if let Some(init) = local.init;
|
|
|
|
if let ExprKind::Call(func, args) = init.kind;
|
|
|
|
if let ExprKind::Path(ref qpath) = func.kind;
|
|
|
|
if match_qpath(qpath, &["std", "mem", "transmute"]);
|
2019-03-07 07:07:01 -06:00
|
|
|
if args.len() == 1;
|
2021-12-06 05:33:31 -06:00
|
|
|
if let ExprKind::Path(ref qpath1) = args[0].kind;
|
|
|
|
if match_qpath(qpath1, &["ZPTR"]);
|
2019-09-27 10:16:06 -05:00
|
|
|
if let PatKind::Wild = local.pat.kind;
|
2019-03-07 07:07:01 -06:00
|
|
|
then {
|
|
|
|
// report your lint here
|
|
|
|
}
|
|
|
|
}
|