about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/author/issue_3849.stdout
blob: f02ea5bf075f7745eb15b6dfa1b6f8194fe60ade (plain)
1
2
3
4
5
6
7
8
9
if let StmtKind::Let(local) = stmt.kind
    && let Some(init) = local.init
    && let ExprKind::Call(func, args) = init.kind
    && is_path_diagnostic_item(cx, func, sym::transmute)
    && args.len() == 1
    && let PatKind::Wild = local.pat.kind
{
    // report your lint here
}