bors
f5d429cd76
Auto merge of #5820 - ThibsG:FixSuspiciousArithmeticImpl, r=flip1995
...
Fix FP for `suspicious_arithmetic_impl` from `suspicious_trait_impl` …
As discussed in #3215 , the `suspicious_trait_impl` lint causes too many false positives, as it is complex to find out if binary operations are suspicious or not.
This PR restricts the number of binary operations to at most one, otherwise we don't lint.
This can be seen as very conservative, but at least FP can be reduced to bare minimum.
Fixes : #3215
changelog: limit the `suspicious_arithmetic_impl` lint to one binop, to avoid many FPs
2020-07-26 19:48:17 +00:00
..
2020-07-18 15:09:58 +02:00
2020-07-21 22:10:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 01:58:41 +02:00
2020-07-18 15:09:58 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 01:58:41 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-20 00:30:43 +02:00
2020-07-14 14:59:59 +02:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-18 14:43:36 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-20 00:30:43 +02:00
2020-07-22 05:23:55 +09:00
2020-07-17 01:58:41 +02:00
2020-07-14 14:59:59 +02:00
2020-07-18 15:09:58 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-18 15:09:58 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 21:39:05 +02:00
2020-07-17 08:47:04 +00:00
2020-07-18 15:09:58 +02:00
2020-07-17 08:47:04 +00:00
2020-07-16 16:58:21 -07:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-20 00:56:27 +02:00
2020-07-20 00:36:31 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-18 15:09:58 +02:00
2020-07-17 08:47:04 +00:00
2020-07-19 00:00:17 +02:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-18 15:09:58 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:28:22 +10:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-25 23:58:22 +09:00
2020-07-18 15:09:58 +02:00
2020-07-17 08:47:04 +00:00
2020-07-17 08:47:04 +00:00
2020-07-14 14:59:59 +02:00
2020-07-17 08:47:04 +00:00