summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/author/issue_3849.stdout
blob: 32a3127b85a3e3f50546165e796ef8864f0c160e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
if let StmtKind::Local(local) = stmt.kind
    && 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
}