2024-05-25 22:50:30 -05:00
|
|
|
if let StmtKind::Let(local) = stmt.kind
|
2022-10-05 12:17:57 -05:00
|
|
|
&& let Some(init) = local.init
|
|
|
|
&& let ExprKind::Call(func, args) = init.kind
|
|
|
|
&& let ExprKind::Path(ref qpath) = func.kind
|
|
|
|
&& match_qpath(qpath, &["std", "mem", "transmute"])
|
|
|
|
&& args.len() == 1
|
|
|
|
&& let ExprKind::Path(ref qpath1) = args[0].kind
|
|
|
|
&& match_qpath(qpath1, &["ZPTR"])
|
|
|
|
&& let PatKind::Wild = local.pat.kind
|
|
|
|
{
|
|
|
|
// report your lint here
|
2019-03-07 07:07:01 -06:00
|
|
|
}
|