mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 17:13:48 +00:00
15 lines
465 B
Plaintext
15 lines
465 B
Plaintext
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
|
|
}
|
|
}
|