2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:17:9
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | self.x == other.y && self.y == other.y && self.z == other.z
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: did you mean: `self.x == other.x`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::suspicious-operation-groupings` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::suspicious_operation_groupings)]`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:30:20
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a < s2.a && s1.a < s2.b
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b < s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:78:33
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a * s2.a + s1.b * s2.b + s1.c * s2.b + s1.d * s2.d
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:83:19
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a * s2.a + s1.b * s2.c + s1.c * s2.c
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:83:19
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a * s2.a + s1.b * s2.c + s1.c * s2.c
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:88:19
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a * s2.a + s2.b * s2.b + s1.c * s2.c
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:93:19
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a * s2.a + s1.b * s1.b + s1.c * s2.c
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:98:5
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a * s1.a + s1.b * s2.b + s1.c * s2.c
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.a * s2.a`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:103:33
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a * s2.a + s1.b * s2.b + s1.c * s1.c
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:116:20
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (s1.a * s2.a + s1.b * s1.b)
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:121:34
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (s1.a * s2.a + s1.b * s2.b + s1.c * s2.b + s1.d * s2.d)
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:126:38
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (s1.a * s2.a) + (s1.b * s2.b) + (s1.c * s2.b) + (s1.d * s2.d)
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:131:39
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | ((s1.a * s2.a) + (s1.b * s2.b) + (s1.c * s2.b) + (s1.d * s2.d))
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:136:42
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (((s1.a * s2.a) + (s1.b * s2.b)) + ((s1.c * s2.b) + (s1.d * s2.d)))
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:136:42
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (((s1.a * s2.a) + (s1.b * s2.b)) + ((s1.c * s2.b) + (s1.d * s2.d)))
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:141:40
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (((s1.a * s2.a) + (s1.b * s2.b) + (s1.c * s2.b)) + (s1.d * s2.d))
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:146:40
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | ((s1.a * s2.a) + ((s1.b * s2.b) + (s1.c * s2.b) + (s1.d * s2.d)))
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:151:20
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (s1.a * s2.a + s2.b * s2.b) / 2
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:156:35
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | i32::swap_bytes(s1.a * s2.a + s2.b * s2.b)
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:161:29
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a > 0 && s1.b > 0 && s1.d == s2.c && s1.d == s2.d
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^^ help: did you mean: `s1.c == s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:166:17
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a > 0 && s1.d == s2.c && s1.b > 0 && s1.d == s2.d
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^^ help: did you mean: `s1.c == s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:175:77
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | (n1.inner.0).0 == (n2.inner.0).0 && (n1.inner.1).0 == (n2.inner.1).0 && (n1.inner.2).0 == (n2.inner.1).0
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `(n1.inner.2).0 == (n2.inner.2).0`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:189:25
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | s1.a <= s2.a && s1.a <= s2.b
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^^ help: did you mean: `s1.b <= s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:195:23
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | if s1.a < s2.a && s1.a < s2.b {
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^ help: did you mean: `s1.b < s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:202:48
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | -(-(-s1.a * -s2.a) + (-(-s1.b * -s2.b) + -(-s1.c * -s2.b) + -(-s1.d * -s2.d)))
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: did you mean: `-s1.c * -s2.c`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2024-02-28 07:17:14 -06:00
|
|
|
--> tests/ui/suspicious_operation_groupings.rs:207:27
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
|
LL | -(if -s1.a < -s2.a && -s1.a < -s2.b { s1.c } else { s2.a })
|
2021-03-12 08:30:50 -06:00
|
|
|
| ^^^^^^^^^^^^^ help: did you mean: `-s1.b < -s2.b`
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2021-09-04 06:26:25 -05:00
|
|
|
error: aborting due to 26 previous errors
|
2020-12-06 08:01:03 -06:00
|
|
|
|