-
Notifications
You must be signed in to change notification settings - Fork 1.7k
remove deduplicate-diagnostics=no
in suspicious_operation_groupings.stderr
#13266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: this sequence of operators looks suspiciously like a bug | ||
--> tests/ui/suspicious_operation_groupings.rs:17:9 | ||
--> tests/ui/suspicious_operation_groupings.rs:15:9 | ||
| | ||
LL | self.x == other.y && self.y == other.y && self.z == other.z | ||
| ^^^^^^^^^^^^^^^^^ help: did you mean: `self.x == other.x` | ||
|
@@ -8,154 +8,142 @@ LL | self.x == other.y && self.y == other.y && self.z == other.z | |
= help: to override `-D warnings` add `#[allow(clippy::suspicious_operation_groupings)]` | ||
|
||
error: this sequence of operators looks suspiciously like a bug | ||
--> tests/ui/suspicious_operation_groupings.rs:30:20 | ||
--> tests/ui/suspicious_operation_groupings.rs:28: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:78:33 | ||
--> tests/ui/suspicious_operation_groupings.rs:76: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:83:19 | ||
--> tests/ui/suspicious_operation_groupings.rs:81: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:83: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:88:19 | ||
--> tests/ui/suspicious_operation_groupings.rs:86: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:93:19 | ||
--> tests/ui/suspicious_operation_groupings.rs:91: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:98:5 | ||
--> tests/ui/suspicious_operation_groupings.rs:96: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:103:33 | ||
--> tests/ui/suspicious_operation_groupings.rs:101: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:116:20 | ||
--> tests/ui/suspicious_operation_groupings.rs:114: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:121:34 | ||
--> tests/ui/suspicious_operation_groupings.rs:119: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:126:38 | ||
--> tests/ui/suspicious_operation_groupings.rs:124: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:131:39 | ||
--> tests/ui/suspicious_operation_groupings.rs:129: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:136: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:136:42 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This error is identical to the one at line edit: I made a mistake with the line numbers in the comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this would indicate there's a place that should be using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this lint, span_lint_and_sugg is used, but what is the difference between it and span_lint_hir_and_then? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It tells the compiler at what node the lint is being emitted for the purposes of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please let me confirm my understanding. I think this duplicate error output is coming from both sides of binOp. |
||
--> tests/ui/suspicious_operation_groupings.rs:134: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:141:40 | ||
--> tests/ui/suspicious_operation_groupings.rs:139: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:146:40 | ||
--> tests/ui/suspicious_operation_groupings.rs:144: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:151:20 | ||
--> tests/ui/suspicious_operation_groupings.rs:149: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:156:35 | ||
--> tests/ui/suspicious_operation_groupings.rs:154: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:161:29 | ||
--> tests/ui/suspicious_operation_groupings.rs:159: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:166:17 | ||
--> tests/ui/suspicious_operation_groupings.rs:164: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:175:77 | ||
--> tests/ui/suspicious_operation_groupings.rs:173: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:189:25 | ||
--> tests/ui/suspicious_operation_groupings.rs:187: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:195:23 | ||
--> tests/ui/suspicious_operation_groupings.rs:193: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:202:48 | ||
--> tests/ui/suspicious_operation_groupings.rs:200: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 | ||
--> tests/ui/suspicious_operation_groupings.rs:207:27 | ||
--> tests/ui/suspicious_operation_groupings.rs:205: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 | ||
error: aborting due to 24 previous errors | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error is identical to the one at line 23, so it can be safely removed.