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.
1 parent 1f36aa5 commit b9abe02Copy full SHA for b9abe02
clippy_lints/src/eq_op.rs
@@ -53,7 +53,7 @@ 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 !in_macro(e.span) && is_valid_operator(op) && SpanlessEq::new(cx).ignore_fn().eq_expr(left, right) {
+ if is_valid_operator(op) && SpanlessEq::new(cx).ignore_fn().eq_expr(left, right) && !in_macro(e.span) {
57
span_lint(
58
cx,
59
EQ_OP,
0 commit comments