Downgrade op_ref to a MaybeIncorrect suggestion

This commit is contained in:
Manish Goregaokar 2019-09-25 14:53:20 -07:00
parent b94f2e89fd
commit 49374a4380

View file

@ -118,7 +118,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
left.span, left.span,
"use the left value directly", "use the left value directly",
lsnip, lsnip,
Applicability::MachineApplicable, // snippet Applicability::MaybeIncorrect, // FIXME #2597
); );
}) })
} else if !lcpy } else if !lcpy
@ -136,7 +136,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
right.span, right.span,
"use the right value directly", "use the right value directly",
rsnip, rsnip,
Applicability::MachineApplicable, // snippet Applicability::MaybeIncorrect, // FIXME #2597
); );
}, },
) )