rust-clippy/tests/ui/author/issue_3849.stdout

15 lines
481 B
Text
Raw Normal View History

2019-03-07 13:07:01 +00:00
if_chain! {
2019-09-27 15:16:06 +00:00
if let StmtKind::Local(ref local) = stmt.kind;
2019-03-07 13:07:01 +00:00
if let Some(ref init) = local.init;
2019-09-27 15:16:06 +00:00
if let ExprKind::Call(ref func, ref args) = init.kind;
2021-11-08 23:05:37 +00:00
if let ExprKind::Path(ref qpath) = func.kind;
if match_qpath(qpath, &["std", "mem", "transmute"]);
2019-03-07 13:07:01 +00:00
if args.len() == 1;
2021-11-08 23:05:37 +00:00
if let ExprKind::Path(ref qpath1) = args[0].kind;
if match_qpath(qpath1, &["ZPTR"]);
2019-09-27 15:16:06 +00:00
if let PatKind::Wild = local.pat.kind;
2019-03-07 13:07:01 +00:00
then {
// report your lint here
}
}