2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:15: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`
|
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: this sequence of operators looks suspiciously like a bug
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:28: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:76: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:81: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:81: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:86: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:91: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:96: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:101: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:114: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:119: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:124: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:129: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:134: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:134: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:139: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:144: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:149: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:154: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:159: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:164: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:173: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:187: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:193: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:200: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
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/suspicious_operation_groupings.rs:205: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
|
|
|
|