]> git.lizzy.rs Git - rust.git/blob - tests/ui/author.stdout
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / author.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::Cast(ref expr, ref cast_ty) = init.node;
5     if let TyKind::Path(ref qp) = cast_ty.node;
6     if match_qpath(qp, &["char"]);
7     if let ExprKind::Lit(ref lit) = expr.node;
8     if let LitKind::Int(69, _) = lit.node;
9     if let PatKind::Binding(BindingAnnotation::Unannotated, _, name, None) = local.pat.node;
10     if name.node.as_str() == "x";
11     then {
12         // report your lint here
13     }
14 }