diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/tools/clippy/tests/ui/suspicious_operation_groupings.stderr | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/tests/ui/suspicious_operation_groupings.stderr | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/suspicious_operation_groupings.stderr b/src/tools/clippy/tests/ui/suspicious_operation_groupings.stderr new file mode 100644 index 000000000..29f229245 --- /dev/null +++ b/src/tools/clippy/tests/ui/suspicious_operation_groupings.stderr @@ -0,0 +1,160 @@ +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:16:9 + | +LL | self.x == other.y && self.y == other.y && self.z == other.z + | ^^^^^^^^^^^^^^^^^ help: did you mean: `self.x == other.x` + | + = note: `-D clippy::suspicious-operation-groupings` implied by `-D warnings` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:29:20 + | +LL | s1.a < s2.a && s1.a < s2.b + | ^^^^^^^^^^^ help: did you mean: `s1.b < s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:77:33 + | +LL | s1.a * s2.a + s1.b * s2.b + s1.c * s2.b + s1.d * s2.d + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:82:19 + | +LL | s1.a * s2.a + s1.b * s2.c + s1.c * s2.c + | ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:82:19 + | +LL | s1.a * s2.a + s1.b * s2.c + s1.c * s2.c + | ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:87:19 + | +LL | s1.a * s2.a + s2.b * s2.b + s1.c * s2.c + | ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:92:19 + | +LL | s1.a * s2.a + s1.b * s1.b + s1.c * s2.c + | ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:97:5 + | +LL | s1.a * s1.a + s1.b * s2.b + s1.c * s2.c + | ^^^^^^^^^^^ help: did you mean: `s1.a * s2.a` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:102:33 + | +LL | s1.a * s2.a + s1.b * s2.b + s1.c * s1.c + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:115:20 + | +LL | (s1.a * s2.a + s1.b * s1.b) + | ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:120:34 + | +LL | (s1.a * s2.a + s1.b * s2.b + s1.c * s2.b + s1.d * s2.d) + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:125:38 + | +LL | (s1.a * s2.a) + (s1.b * s2.b) + (s1.c * s2.b) + (s1.d * s2.d) + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:130:39 + | +LL | ((s1.a * s2.a) + (s1.b * s2.b) + (s1.c * s2.b) + (s1.d * s2.d)) + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:135:42 + | +LL | (((s1.a * s2.a) + (s1.b * s2.b)) + ((s1.c * s2.b) + (s1.d * s2.d))) + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:135:42 + | +LL | (((s1.a * s2.a) + (s1.b * s2.b)) + ((s1.c * s2.b) + (s1.d * s2.d))) + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:140:40 + | +LL | (((s1.a * s2.a) + (s1.b * s2.b) + (s1.c * s2.b)) + (s1.d * s2.d)) + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:145:40 + | +LL | ((s1.a * s2.a) + ((s1.b * s2.b) + (s1.c * s2.b) + (s1.d * s2.d))) + | ^^^^^^^^^^^ help: did you mean: `s1.c * s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:150:20 + | +LL | (s1.a * s2.a + s2.b * s2.b) / 2 + | ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:155:35 + | +LL | i32::swap_bytes(s1.a * s2.a + s2.b * s2.b) + | ^^^^^^^^^^^ help: did you mean: `s1.b * s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:160:29 + | +LL | s1.a > 0 && s1.b > 0 && s1.d == s2.c && s1.d == s2.d + | ^^^^^^^^^^^^ help: did you mean: `s1.c == s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:165:17 + | +LL | s1.a > 0 && s1.d == s2.c && s1.b > 0 && s1.d == s2.d + | ^^^^^^^^^^^^ help: did you mean: `s1.c == s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:174:77 + | +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 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `(n1.inner.2).0 == (n2.inner.2).0` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:188:25 + | +LL | s1.a <= s2.a && s1.a <= s2.b + | ^^^^^^^^^^^^ help: did you mean: `s1.b <= s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:194:23 + | +LL | if s1.a < s2.a && s1.a < s2.b { + | ^^^^^^^^^^^ help: did you mean: `s1.b < s2.b` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:201:48 + | +LL | -(-(-s1.a * -s2.a) + (-(-s1.b * -s2.b) + -(-s1.c * -s2.b) + -(-s1.d * -s2.d))) + | ^^^^^^^^^^^^^ help: did you mean: `-s1.c * -s2.c` + +error: this sequence of operators looks suspiciously like a bug + --> $DIR/suspicious_operation_groupings.rs:206:27 + | +LL | -(if -s1.a < -s2.a && -s1.a < -s2.b { s1.c } else { s2.a }) + | ^^^^^^^^^^^^^ help: did you mean: `-s1.b < -s2.b` + +error: aborting due to 26 previous errors + |