We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e9a08b + f97c38d commit 41f23f5Copy full SHA for 41f23f5
clippy_lints/src/eq_op.rs
@@ -53,7 +53,10 @@ impl LintPass for EqOp {
53
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
54
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
55
if let ExprBinary(ref op, ref left, ref right) = e.node {
56
- if is_valid_operator(op) && SpanlessEq::new(cx).ignore_fn().eq_expr(left, right) && !in_macro(e.span) {
+ if in_macro(e.span) {
57
+ return;
58
+ }
59
+ if is_valid_operator(op) && SpanlessEq::new(cx).ignore_fn().eq_expr(left, right) {
60
span_lint(
61
cx,
62
EQ_OP,
0 commit comments