|
1 | 1 | error: equal expressions as operands to `==`
|
2 |
| - --> $DIR/eq_op.rs:8:13 |
| 2 | + --> $DIR/eq_op.rs:9:13 |
3 | 3 | |
|
4 | 4 | LL | let _ = 1 == 1;
|
5 | 5 | | ^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::eq-op` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: equal expressions as operands to `==`
|
10 |
| - --> $DIR/eq_op.rs:9:13 |
| 10 | + --> $DIR/eq_op.rs:10:13 |
11 | 11 | |
|
12 | 12 | LL | let _ = "no" == "no";
|
13 | 13 | | ^^^^^^^^^^^^
|
14 | 14 |
|
15 | 15 | error: equal expressions as operands to `!=`
|
16 |
| - --> $DIR/eq_op.rs:11:13 |
| 16 | + --> $DIR/eq_op.rs:12:13 |
17 | 17 | |
|
18 | 18 | LL | let _ = false != false;
|
19 | 19 | | ^^^^^^^^^^^^^^
|
20 | 20 |
|
21 | 21 | error: equal expressions as operands to `<`
|
22 |
| - --> $DIR/eq_op.rs:12:13 |
| 22 | + --> $DIR/eq_op.rs:13:13 |
23 | 23 | |
|
24 | 24 | LL | let _ = 1.5 < 1.5;
|
25 | 25 | | ^^^^^^^^^
|
26 | 26 |
|
27 | 27 | error: equal expressions as operands to `>=`
|
28 |
| - --> $DIR/eq_op.rs:13:13 |
| 28 | + --> $DIR/eq_op.rs:14:13 |
29 | 29 | |
|
30 | 30 | LL | let _ = 1u64 >= 1u64;
|
31 | 31 | | ^^^^^^^^^^^^
|
32 | 32 |
|
33 | 33 | error: equal expressions as operands to `&`
|
34 |
| - --> $DIR/eq_op.rs:16:13 |
| 34 | + --> $DIR/eq_op.rs:17:13 |
35 | 35 | |
|
36 | 36 | LL | let _ = (1u32 as u64) & (1u32 as u64);
|
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
38 | 38 |
|
39 | 39 | error: equal expressions as operands to `^`
|
40 |
| - --> $DIR/eq_op.rs:19:17 |
| 40 | + --> $DIR/eq_op.rs:20:17 |
41 | 41 | |
|
42 | 42 | LL | let _ = 1 ^ ((((((1))))));
|
43 | 43 | | ^^^^^^^^^^^^^^^^^
|
44 | 44 |
|
45 | 45 | error: equal expressions as operands to `<`
|
46 |
| - --> $DIR/eq_op.rs:23:13 |
| 46 | + --> $DIR/eq_op.rs:24:13 |
47 | 47 | |
|
48 | 48 | LL | let _ = (-(2) < -(2));
|
49 | 49 | | ^^^^^^^^^^^^^
|
50 | 50 |
|
51 | 51 | error: equal expressions as operands to `==`
|
52 |
| - --> $DIR/eq_op.rs:24:13 |
| 52 | + --> $DIR/eq_op.rs:25:13 |
53 | 53 | |
|
54 | 54 | LL | let _ = ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
55 | 55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
56 | 56 |
|
57 | 57 | error: equal expressions as operands to `&`
|
58 |
| - --> $DIR/eq_op.rs:24:14 |
| 58 | + --> $DIR/eq_op.rs:25:14 |
59 | 59 | |
|
60 | 60 | LL | let _ = ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
61 | 61 | | ^^^^^^^^^^^^^^^^^
|
62 | 62 |
|
63 | 63 | error: equal expressions as operands to `&`
|
64 |
| - --> $DIR/eq_op.rs:24:35 |
| 64 | + --> $DIR/eq_op.rs:25:35 |
65 | 65 | |
|
66 | 66 | LL | let _ = ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
67 | 67 | | ^^^^^^^^^^^^^^^^^
|
68 | 68 |
|
69 | 69 | error: equal expressions as operands to `==`
|
70 |
| - --> $DIR/eq_op.rs:25:13 |
| 70 | + --> $DIR/eq_op.rs:26:13 |
71 | 71 | |
|
72 | 72 | LL | let _ = (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
|
73 | 73 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
74 | 74 |
|
75 | 75 | error: equal expressions as operands to `!=`
|
76 |
| - --> $DIR/eq_op.rs:28:13 |
| 76 | + --> $DIR/eq_op.rs:29:13 |
77 | 77 | |
|
78 | 78 | LL | let _ = ([1] != [1]);
|
79 | 79 | | ^^^^^^^^^^^^
|
80 | 80 |
|
81 | 81 | error: equal expressions as operands to `!=`
|
82 |
| - --> $DIR/eq_op.rs:29:13 |
| 82 | + --> $DIR/eq_op.rs:30:13 |
83 | 83 | |
|
84 | 84 | LL | let _ = ((1, 2) != (1, 2));
|
85 | 85 | | ^^^^^^^^^^^^^^^^^^
|
86 | 86 |
|
87 | 87 | error: equal expressions as operands to `==`
|
88 |
| - --> $DIR/eq_op.rs:33:13 |
| 88 | + --> $DIR/eq_op.rs:34:13 |
89 | 89 | |
|
90 | 90 | LL | let _ = 1 + 1 == 2;
|
91 | 91 | | ^^^^^^^^^^
|
92 | 92 |
|
93 | 93 | error: equal expressions as operands to `==`
|
94 |
| - --> $DIR/eq_op.rs:34:13 |
| 94 | + --> $DIR/eq_op.rs:35:13 |
95 | 95 | |
|
96 | 96 | LL | let _ = 1 - 1 == 0;
|
97 | 97 | | ^^^^^^^^^^
|
98 | 98 |
|
99 | 99 | error: equal expressions as operands to `-`
|
100 |
| - --> $DIR/eq_op.rs:34:13 |
| 100 | + --> $DIR/eq_op.rs:35:13 |
101 | 101 | |
|
102 | 102 | LL | let _ = 1 - 1 == 0;
|
103 | 103 | | ^^^^^
|
104 | 104 |
|
105 | 105 | error: equal expressions as operands to `-`
|
106 |
| - --> $DIR/eq_op.rs:36:13 |
| 106 | + --> $DIR/eq_op.rs:37:13 |
107 | 107 | |
|
108 | 108 | LL | let _ = 1 - 1;
|
109 | 109 | | ^^^^^
|
110 | 110 |
|
111 | 111 | error: equal expressions as operands to `/`
|
112 |
| - --> $DIR/eq_op.rs:37:13 |
| 112 | + --> $DIR/eq_op.rs:38:13 |
113 | 113 | |
|
114 | 114 | LL | let _ = 1 / 1;
|
115 | 115 | | ^^^^^
|
116 | 116 |
|
117 | 117 | error: equal expressions as operands to `&&`
|
118 |
| - --> $DIR/eq_op.rs:38:13 |
| 118 | + --> $DIR/eq_op.rs:39:13 |
119 | 119 | |
|
120 | 120 | LL | let _ = true && true;
|
121 | 121 | | ^^^^^^^^^^^^
|
122 | 122 |
|
123 | 123 | error: equal expressions as operands to `||`
|
124 |
| - --> $DIR/eq_op.rs:40:13 |
| 124 | + --> $DIR/eq_op.rs:41:13 |
125 | 125 | |
|
126 | 126 | LL | let _ = true || true;
|
127 | 127 | | ^^^^^^^^^^^^
|
128 | 128 |
|
129 | 129 | error: equal expressions as operands to `&&`
|
130 |
| - --> $DIR/eq_op.rs:45:13 |
| 130 | + --> $DIR/eq_op.rs:46:13 |
131 | 131 | |
|
132 | 132 | LL | let _ = a == b && b == a;
|
133 | 133 | | ^^^^^^^^^^^^^^^^
|
134 | 134 |
|
135 | 135 | error: equal expressions as operands to `&&`
|
136 |
| - --> $DIR/eq_op.rs:46:13 |
| 136 | + --> $DIR/eq_op.rs:47:13 |
137 | 137 | |
|
138 | 138 | LL | let _ = a != b && b != a;
|
139 | 139 | | ^^^^^^^^^^^^^^^^
|
140 | 140 |
|
141 | 141 | error: equal expressions as operands to `&&`
|
142 |
| - --> $DIR/eq_op.rs:47:13 |
| 142 | + --> $DIR/eq_op.rs:48:13 |
143 | 143 | |
|
144 | 144 | LL | let _ = a < b && b > a;
|
145 | 145 | | ^^^^^^^^^^^^^^
|
146 | 146 |
|
147 | 147 | error: equal expressions as operands to `&&`
|
148 |
| - --> $DIR/eq_op.rs:48:13 |
| 148 | + --> $DIR/eq_op.rs:49:13 |
149 | 149 | |
|
150 | 150 | LL | let _ = a <= b && b >= a;
|
151 | 151 | | ^^^^^^^^^^^^^^^^
|
152 | 152 |
|
153 | 153 | error: equal expressions as operands to `==`
|
154 |
| - --> $DIR/eq_op.rs:51:13 |
| 154 | + --> $DIR/eq_op.rs:52:13 |
155 | 155 | |
|
156 | 156 | LL | let _ = a == a;
|
157 | 157 | | ^^^^^^
|
158 | 158 |
|
159 | 159 | error: equal expressions as operands to `/`
|
160 |
| - --> $DIR/eq_op.rs:61:20 |
| 160 | + --> $DIR/eq_op.rs:62:20 |
161 | 161 | |
|
162 | 162 | LL | const D: u32 = A / A;
|
163 | 163 | | ^^^^^
|
164 | 164 |
|
165 | 165 | error: equal expressions as operands to `==`
|
166 |
| - --> $DIR/eq_op.rs:92:5 |
| 166 | + --> $DIR/eq_op.rs:93:5 |
167 | 167 | |
|
168 | 168 | LL | (n1.inner.0).0 == (n1.inner.0).0 && (n1.inner.1).0 == (n2.inner.1).0 && (n1.inner.2).0 == (n2.inner.2).0
|
169 | 169 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
0 commit comments