]> git.lizzy.rs Git - rust.git/blob - tests/ui/issue_3849.stdout
Auto merge of #3824 - phansch:adding_lints, r=phansch
[rust.git] / tests / ui / issue_3849.stdout
1 if_chain! {
2     if let StmtKind::Local(ref local) = stmt.node;
3     if let Some(ref init) = local.init;
4     if let ExprKind::Call(ref func, ref args) = init.node;
5     if let ExprKind::Path(ref path) = func.node;
6     if match_qpath(path, &["std", "mem", "transmute"]);
7     if args.len() == 1;
8     if let ExprKind::Path(ref path1) = args[0].node;
9     if match_qpath(path1, &["ZPTR"]);
10     if let PatKind::Wild = local.pat.node;
11     then {
12         // report your lint here
13     }
14 }