mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
12 lines
421 B
Text
12 lines
421 B
Text
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
|
|
}
|