fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1if let StmtKind::Local(local) = stmt.kind 2 && let Some(init) = local.init 3 && let ExprKind::Cast(expr, cast_ty) = init.kind 4 && let TyKind::Path(ref qpath) = cast_ty.kind 5 && match_qpath(qpath, &["char"]) 6 && let ExprKind::Lit(ref lit) = expr.kind 7 && let LitKind::Int(69, LitIntType::Unsuffixed) = lit.node 8 && let PatKind::Binding(BindingAnnotation::NONE, _, name, None) = local.pat.kind 9 && name.as_str() == "x" 10{ 11 // report your lint here 12}