rust/tests/ui/author/issue_3849.stdout

15 lines
477 B
Plaintext
Raw Normal View History

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