]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/author/call.stdout
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / author / call.stdout
CommitLineData
f20569fa
XL
1if_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}