rust/tests/ui/trailing_zeros.stdout

16 lines
546 B
Plaintext
Raw Normal View History

2017-10-23 21:20:37 +02:00
if_chain! {
2018-07-12 09:30:57 +02:00
if let ExprKind::Binary(ref op, ref left, ref right) = expr.node;
2018-07-12 09:50:09 +02:00
if BinOpKind::Eq == op.node;
2018-07-12 09:30:57 +02:00
if let ExprKind::Binary(ref op1, ref left1, ref right1) = left.node;
2018-07-12 09:50:09 +02:00
if BinOpKind::BitAnd == op1.node;
2018-07-12 09:30:57 +02:00
if let ExprKind::Path(ref path) = left1.node;
2017-10-23 21:20:37 +02:00
if match_qpath(path, &["x"]);
2018-07-12 09:30:57 +02:00
if let ExprKind::Lit(ref lit) = right1.node;
2017-10-23 21:20:37 +02:00
if let LitKind::Int(15, _) = lit.node;
2018-07-12 09:30:57 +02:00
if let ExprKind::Lit(ref lit1) = right.node;
2017-10-23 21:20:37 +02:00
if let LitKind::Int(0, _) = lit1.node;
then {
// report your lint here
}
}