]> git.lizzy.rs Git - rust.git/blob - tests/ui/author.stdout
Auto merge of #3635 - matthiaskrgr:revert_random_state_3603, r=xfix
[rust.git] / tests / ui / author.stdout
1 if_chain! {
2     if let StmtKind::Decl(ref decl, _) = stmt.node
3     if let DeclKind::Local(ref local) = decl.node;
4     if let Some(ref init) = local.init
5     if let ExprKind::Cast(ref expr, ref cast_ty) = init.node;
6     if let TyKind::Path(ref qp) = cast_ty.node;
7     if match_qpath(qp, &["char"]);
8     if let ExprKind::Lit(ref lit) = expr.node;
9     if let LitKind::Int(69, _) = lit.node;
10     if let PatKind::Binding(BindingAnnotation::Unannotated, _, name, None) = local.pat.node;
11     if name.node.as_str() == "x";
12     then {
13         // report your lint here
14     }
15 }