blob: b88058f974dbaad96061d54d366fbd94d79822ea [file] [log] [blame] [edit]
if let StmtKind::Let(local) = stmt.kind
&& let Some(init) = local.init
&& let ExprKind::Call(func, args) = init.kind
&& func.res(cx).is_diag_item(cx, sym::transmute)
&& args.len() == 1
&& let PatKind::Wild = local.pat.kind
{
// report your lint here
}