mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-29 22:43:41 +00:00
15 lines
477 B
Text
15 lines
477 B
Text
|
if_chain! {
|
||
|
if let StmtKind::Local(ref local) = stmt.node;
|
||
|
if let Some(ref init) = local.init;
|
||
|
if let ExprKind::Call(ref func, ref args) = init.node;
|
||
|
if let ExprKind::Path(ref path) = func.node;
|
||
|
if match_qpath(path, &["std", "mem", "transmute"]);
|
||
|
if args.len() == 1;
|
||
|
if let ExprKind::Path(ref path1) = args[0].node;
|
||
|
if match_qpath(path1, &["ZPTR"]);
|
||
|
if let PatKind::Wild = local.pat.node;
|
||
|
then {
|
||
|
// report your lint here
|
||
|
}
|
||
|
}
|