Make OP_REF lint suggestion MaybeIncorrect

cc #2597
This commit is contained in:
flip1995 2019-12-03 18:24:26 +01:00
parent 718558064d
commit c56f72da35
No known key found for this signature in database
GPG key ID: 693086869D506637

View file

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