2017-07-03 08:24:52 -05:00
|
|
|
if_let_chain!{[
|
|
|
|
let Expr_::ExprBinary(ref op, ref left, ref right) = expr.node,
|
|
|
|
BinOp_::BiEq == op.node,
|
|
|
|
let Expr_::ExprBinary(ref op1, ref left1, ref right1) = left.node,
|
|
|
|
BinOp_::BiBitAnd == op1.node,
|
|
|
|
let Expr_::ExprPath(ref path) = left1.node,
|
2017-08-24 17:21:46 -05:00
|
|
|
match_qpath(path, &["x"]),
|
2017-07-03 08:24:52 -05:00
|
|
|
let Expr_::ExprLit(ref lit) = right1.node,
|
|
|
|
let LitKind::Int(15, _) = lit.node,
|
|
|
|
let Expr_::ExprLit(ref lit1) = right.node,
|
|
|
|
let LitKind::Int(0, _) = lit1.node,
|
2017-07-03 09:07:04 -05:00
|
|
|
], {
|
2017-07-03 08:24:52 -05:00
|
|
|
// report your lint here
|
2017-07-03 09:07:04 -05:00
|
|
|
}}
|