]> git.lizzy.rs Git - rust.git/blob - tests/ui/author/call.stdout
Auto merge of #3680 - g-bartoszek:needless-bool-else-if-brackets, r=oli-obk
[rust.git] / tests / ui / author / call.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, &["{{root}}", "std", "cmp", "min"]);
7     if args.len() == 2;
8     if let ExprKind::Lit(ref lit) = args[0].node;
9     if let LitKind::Int(3, _) = lit.node;
10     if let ExprKind::Lit(ref lit1) = args[1].node;
11     if let LitKind::Int(4, _) = lit1.node;
12     if let PatKind::Wild = local.pat.node;
13     then {
14         // report your lint here
15     }
16 }