2017-02-07 20:05:30 +00:00
|
|
|
error: this boolean expression can be simplified
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:37:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
37 | true && true;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^ help: try `true`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D nonminimal-bool` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this boolean expression can be simplified
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:39:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
39 | true || true;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^ help: try `true`
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D nonminimal-bool` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this boolean expression can be simplified
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:45:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
45 | a == b && b == a;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try `a == b`
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D nonminimal-bool` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this boolean expression can be simplified
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:46:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
46 | a != b && b != a;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try `a != b`
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D nonminimal-bool` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this boolean expression can be simplified
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:47:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
47 | a < b && b > a;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: try `a < b`
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D nonminimal-bool` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this boolean expression can be simplified
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:48:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
48 | a <= b && b >= a;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try `a <= b`
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D nonminimal-bool` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:10:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
10 | 1 == 1;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:11:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
11 | "no" == "no";
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:13:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
13 | false != false;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `<`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:14:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
14 | 1.5 < 1.5;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `>=`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:15:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
15 | 1u64 >= 1u64;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:18:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
18 | (1 as u64) & (1 as u64);
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `^`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:19:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
19 | 1 ^ ((((((1))))));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `<`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:22:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
22 | (-(2) < -(2));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:23:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
23 | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:23:6
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
23 | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:23:27
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
23 | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:24:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
24 | (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:27:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
27 | ([1] != [1]);
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:28:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
28 | ((1, 2) != (1, 2));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:32:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
32 | 1 + 1 == 2;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:33:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
33 | 1 - 1 == 0;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `-`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:33:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
33 | 1 - 1 == 0;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `-`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:35:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
35 | 1 - 1;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `/`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:36:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
36 | 1 / 1;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:37:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
37 | true && true;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `||`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:39:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
39 | true || true;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:45:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
45 | a == b && b == a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:46:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
46 | a != b && b != a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:47:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
47 | a < b && b > a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:48:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
48 | a <= b && b >= a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:51:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
51 | a == a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
error: taken reference of right operand
|
2017-05-17 15:51:35 +00:00
|
|
|
--> eq_op.rs:89:13
|
2017-04-28 15:07:39 +00:00
|
|
|
|
|
2017-05-11 11:03:48 +00:00
|
|
|
89 | let z = x & &y;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^--
|
|
|
|
| |
|
|
|
|
| help: use the right value directly `y`
|
2017-04-28 15:07:39 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D op-ref` implied by `-D warnings`
|
|
|
|
|
2017-05-26 07:21:54 +00:00
|
|
|
error: aborting due to previous error(s)
|
2017-04-28 15:07:39 +00:00
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
error: Could not compile `clippy_tests`.
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
To learn more, run the command again with --verbose.
|