summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/author/issue_3849.stdout
blob: bce4bc702733f206e11fc99e4585316dea805594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if_chain! {
    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"]);
    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
    }
}