]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/author/call.stdout
Merge branch 'master' into hooks
[rust.git] / src / tools / clippy / tests / ui / author / call.stdout
1 if_chain! {
2     if let StmtKind::Local(ref local) = stmt.kind;
3     if let Some(ref init) = local.init;
4     if let ExprKind::Call(ref func, ref args) = init.kind;
5     if let ExprKind::Path(ref path) = func.kind;
6     if match_qpath(path, &["{{root}}", "std", "cmp", "min"]);
7     if args.len() == 2;
8     if let ExprKind::Lit(ref lit) = args[0].kind;
9     if let LitKind::Int(3, _) = lit.node;
10     if let ExprKind::Lit(ref lit1) = args[1].kind;
11     if let LitKind::Int(4, _) = lit1.node;
12     if let PatKind::Wild = local.pat.kind;
13     then {
14         // report your lint here
15     }
16 }