You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^^^^^^ help: consider comparing them within some margin of error: `(x - y).abs() > error_margin`
18
18
19
19
error: strict comparison of `f32` or `f64`
20
-
--> tests/ui-toml/float_cmp/test.rs:19:21
20
+
--> tests/ui-toml/float_cmp/test.rs:24:21
21
21
|
22
22
LL | let _ = x == 5.5;
23
23
| ^^^^^^^^ help: consider comparing them within some margin of error: `(x - 5.5).abs() < error_margin`
24
24
25
25
error: strict comparison of `f32` or `f64`
26
-
--> tests/ui-toml/float_cmp/test.rs:20:21
26
+
--> tests/ui-toml/float_cmp/test.rs:25:21
27
27
|
28
28
LL | let _ = 5.5 == x;
29
29
| ^^^^^^^^ help: consider comparing them within some margin of error: `(5.5 - x).abs() < error_margin`
30
30
31
31
error: strict comparison of `f32` or `f64`
32
-
--> tests/ui-toml/float_cmp/test.rs:43:21
32
+
--> tests/ui-toml/float_cmp/test.rs:48:21
33
33
|
34
34
LL | let _ = x == y;
35
35
| ^^^^^^ help: consider comparing them within some margin of error: `(x - y).abs() < error_margin`
36
36
37
37
error: strict comparison of `f32` or `f64`
38
-
--> tests/ui-toml/float_cmp/test.rs:44:21
38
+
--> tests/ui-toml/float_cmp/test.rs:49:21
39
39
|
40
40
LL | let _ = x != y;
41
41
| ^^^^^^ help: consider comparing them within some margin of error: `(x - y).abs() > error_margin`
42
42
43
43
error: strict comparison of `f32` or `f64`
44
-
--> tests/ui-toml/float_cmp/test.rs:45:21
44
+
--> tests/ui-toml/float_cmp/test.rs:50:21
45
45
|
46
46
LL | let _ = x == 5.5;
47
47
| ^^^^^^^^ help: consider comparing them within some margin of error: `(x - 5.5).abs() < error_margin`
48
48
49
49
error: strict comparison of `f32` or `f64`
50
-
--> tests/ui-toml/float_cmp/test.rs:46:21
50
+
--> tests/ui-toml/float_cmp/test.rs:51:21
51
51
|
52
52
LL | let _ = 5.5 == x;
53
53
| ^^^^^^^^ help: consider comparing them within some margin of error: `(5.5 - x).abs() < error_margin`
54
54
55
55
error: strict comparison of `f32` or `f64` arrays
56
-
--> tests/ui-toml/float_cmp/test.rs:69:21
56
+
--> tests/ui-toml/float_cmp/test.rs:74:21
57
57
|
58
58
LL | let _ = x == y;
59
59
| ^^^^^^
60
60
61
61
error: strict comparison of `f32` or `f64` arrays
62
-
--> tests/ui-toml/float_cmp/test.rs:70:21
62
+
--> tests/ui-toml/float_cmp/test.rs:75:21
63
63
|
64
64
LL | let _ = x == [5.5; 4];
65
65
| ^^^^^^^^^^^^^
66
66
67
67
error: strict comparison of `f32` or `f64` arrays
68
-
--> tests/ui-toml/float_cmp/test.rs:71:21
68
+
--> tests/ui-toml/float_cmp/test.rs:76:21
69
69
|
70
70
LL | let _ = [5.5; 4] == x;
71
71
| ^^^^^^^^^^^^^
72
72
73
73
error: strict comparison of `f32` or `f64` arrays
74
-
--> tests/ui-toml/float_cmp/test.rs:72:21
74
+
--> tests/ui-toml/float_cmp/test.rs:77:21
75
75
|
76
76
LL | let _ = [0.0, 0.0, 0.0, 5.5] == x;
77
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^
78
78
79
79
error: strict comparison of `f32` or `f64` arrays
80
-
--> tests/ui-toml/float_cmp/test.rs:73:21
80
+
--> tests/ui-toml/float_cmp/test.rs:78:21
81
81
|
82
82
LL | let _ = x == [0.0, 0.0, 0.0, 5.5];
83
83
| ^^^^^^^^^^^^^^^^^^^^^^^^^
84
84
85
85
error: strict comparison of `f32` or `f64` arrays
86
-
--> tests/ui-toml/float_cmp/test.rs:89:21
86
+
--> tests/ui-toml/float_cmp/test.rs:94:21
87
87
|
88
88
LL | let _ = x == y;
89
89
| ^^^^^^
90
90
91
91
error: strict comparison of `f32` or `f64` arrays
92
-
--> tests/ui-toml/float_cmp/test.rs:90:21
92
+
--> tests/ui-toml/float_cmp/test.rs:95:21
93
93
|
94
94
LL | let _ = x == [5.5; 4];
95
95
| ^^^^^^^^^^^^^
96
96
97
97
error: strict comparison of `f32` or `f64` arrays
98
-
--> tests/ui-toml/float_cmp/test.rs:91:21
98
+
--> tests/ui-toml/float_cmp/test.rs:96:21
99
99
|
100
100
LL | let _ = [5.5; 4] == x;
101
101
| ^^^^^^^^^^^^^
102
102
103
103
error: strict comparison of `f32` or `f64` arrays
104
-
--> tests/ui-toml/float_cmp/test.rs:92:21
104
+
--> tests/ui-toml/float_cmp/test.rs:97:21
105
105
|
106
106
LL | let _ = [0.0, 0.0, 0.0, 5.5] == x;
107
107
| ^^^^^^^^^^^^^^^^^^^^^^^^^
108
108
109
109
error: strict comparison of `f32` or `f64` arrays
110
-
--> tests/ui-toml/float_cmp/test.rs:93:21
110
+
--> tests/ui-toml/float_cmp/test.rs:98:21
111
111
|
112
112
LL | let _ = x == [0.0, 0.0, 0.0, 5.5];
113
113
| ^^^^^^^^^^^^^^^^^^^^^^^^^
114
114
115
115
error: strict comparison of `f32` or `f64`
116
-
--> tests/ui-toml/float_cmp/test.rs:111:21
116
+
--> tests/ui-toml/float_cmp/test.rs:116:21
117
117
|
118
118
LL | let _ = x == y;
119
119
| ^^^^^^ help: consider comparing them within some margin of error: `(x - y).abs() < error_margin`
120
120
121
121
error: strict comparison of `f32` or `f64` arrays
122
-
--> tests/ui-toml/float_cmp/test.rs:117:21
122
+
--> tests/ui-toml/float_cmp/test.rs:122:21
123
123
|
124
124
LL | let _ = x == y;
125
125
| ^^^^^^
126
126
127
127
error: strict comparison of `f32` or `f64`
128
-
--> tests/ui-toml/float_cmp/test.rs:132:21
128
+
--> tests/ui-toml/float_cmp/test.rs:137:21
129
129
|
130
130
LL | let _ = f32::EPSILON * x == x * x;
131
131
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f32::EPSILON * x - x * x).abs() < error_margin`
132
132
133
133
error: strict comparison of `f32` or `f64`
134
-
--> tests/ui-toml/float_cmp/test.rs:133:21
134
+
--> tests/ui-toml/float_cmp/test.rs:138:21
135
135
|
136
136
LL | let _ = x * x == f32::EPSILON * x;
137
137
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x * x - f32::EPSILON * x).abs() < error_margin`
138
138
139
139
error: strict comparison of `f32` or `f64`
140
-
--> tests/ui-toml/float_cmp/test.rs:158:17
140
+
--> tests/ui-toml/float_cmp/test.rs:163:17
141
141
|
142
142
LL | let _ = f(1.0) == f(5.0);
143
143
| ^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f(1.0) - f(5.0)).abs() < error_margin`
144
144
145
145
error: strict comparison of `f32` or `f64`
146
-
--> tests/ui-toml/float_cmp/test.rs:159:17
146
+
--> tests/ui-toml/float_cmp/test.rs:164:17
147
147
|
148
148
LL | let _ = 1.0 == f(5.0);
149
149
| ^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(1.0 - f(5.0)).abs() < error_margin`
150
150
151
151
error: strict comparison of `f32` or `f64`
152
-
--> tests/ui-toml/float_cmp/test.rs:160:17
152
+
--> tests/ui-toml/float_cmp/test.rs:165:17
153
153
|
154
154
LL | let _ = f(1.0) + 1.0 != 5.0;
155
155
| ^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f(1.0) + 1.0 - 5.0).abs() > error_margin`
156
156
157
157
error: strict comparison of `f32` or `f64`
158
-
--> tests/ui-toml/float_cmp/test.rs:202:21
158
+
--> tests/ui-toml/float_cmp/test.rs:207:21
159
159
|
160
160
LL | let _ = x == C[1];
161
161
| ^^^^^^^^^ help: consider comparing them within some margin of error: `(x - C[1]).abs() < error_margin`
162
162
163
163
error: strict comparison of `f32` or `f64`
164
-
--> tests/ui-toml/float_cmp/test.rs:203:21
164
+
--> tests/ui-toml/float_cmp/test.rs:208:21
165
165
|
166
166
LL | let _ = C[1] == x;
167
167
| ^^^^^^^^^ help: consider comparing them within some margin of error: `(C[1] - x).abs() < error_margin`
168
168
169
169
error: strict comparison of `f32` or `f64`
170
-
--> tests/ui-toml/float_cmp/test.rs:268:21
170
+
--> tests/ui-toml/float_cmp/test.rs:273:21
171
171
|
172
172
LL | let _ = x == x + 1.0;
173
173
| ^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x - (x + 1.0)).abs() < error_margin`
174
174
175
175
error: strict comparison of `f32` or `f64`
176
-
--> tests/ui-toml/float_cmp/test.rs:269:21
176
+
--> tests/ui-toml/float_cmp/test.rs:274:21
177
177
|
178
178
LL | let _ = x + 1.0 == x;
179
179
| ^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x + 1.0 - x).abs() < error_margin`
180
180
181
181
error: strict comparison of `f32` or `f64`
182
-
--> tests/ui-toml/float_cmp/test.rs:270:21
182
+
--> tests/ui-toml/float_cmp/test.rs:275:21
183
183
|
184
184
LL | let _ = -x == -x + 1.0;
185
185
| ^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(-x - (-x + 1.0)).abs() < error_margin`
186
186
187
187
error: strict comparison of `f32` or `f64`
188
-
--> tests/ui-toml/float_cmp/test.rs:271:21
188
+
--> tests/ui-toml/float_cmp/test.rs:276:21
189
189
|
190
190
LL | let _ = -x + 1.0 == -x;
191
191
| ^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(-x + 1.0 - -x).abs() < error_margin`
192
192
193
193
error: strict comparison of `f32` or `f64`
194
-
--> tests/ui-toml/float_cmp/test.rs:272:21
194
+
--> tests/ui-toml/float_cmp/test.rs:277:21
195
195
|
196
196
LL | let _ = x == f1(x);
197
197
| ^^^^^^^^^^ help: consider comparing them within some margin of error: `(x - f1(x)).abs() < error_margin`
198
198
199
199
error: strict comparison of `f32` or `f64`
200
-
--> tests/ui-toml/float_cmp/test.rs:273:21
200
+
--> tests/ui-toml/float_cmp/test.rs:278:21
201
201
|
202
202
LL | let _ = f1(x) == x;
203
203
| ^^^^^^^^^^ help: consider comparing them within some margin of error: `(f1(x) - x).abs() < error_margin`
204
204
205
205
error: strict comparison of `f32` or `f64`
206
-
--> tests/ui-toml/float_cmp/test.rs:274:21
206
+
--> tests/ui-toml/float_cmp/test.rs:279:21
207
207
|
208
208
LL | let _ = x == f2(x, y);
209
209
| ^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x - f2(x, y)).abs() < error_margin`
210
210
211
211
error: strict comparison of `f32` or `f64`
212
-
--> tests/ui-toml/float_cmp/test.rs:275:21
212
+
--> tests/ui-toml/float_cmp/test.rs:280:21
213
213
|
214
214
LL | let _ = f2(x, y) == x;
215
215
| ^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f2(x, y) - x).abs() < error_margin`
216
216
217
217
error: strict comparison of `f32` or `f64`
218
-
--> tests/ui-toml/float_cmp/test.rs:276:21
218
+
--> tests/ui-toml/float_cmp/test.rs:281:21
219
219
|
220
220
LL | let _ = f1(f1(x)) == f1(x);
221
221
| ^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f1(f1(x)) - f1(x)).abs() < error_margin`
222
222
223
223
error: strict comparison of `f32` or `f64`
224
-
--> tests/ui-toml/float_cmp/test.rs:277:21
224
+
--> tests/ui-toml/float_cmp/test.rs:282:21
225
225
|
226
226
LL | let _ = f1(x) == f1(f1(x));
227
227
| ^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f1(x) - f1(f1(x))).abs() < error_margin`
228
228
229
229
error: strict comparison of `f32` or `f64`
230
-
--> tests/ui-toml/float_cmp/test.rs:280:21
230
+
--> tests/ui-toml/float_cmp/test.rs:285:21
231
231
|
232
232
LL | let _ = z.0 == z.0 + 1.0;
233
233
| ^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(z.0 - (z.0 + 1.0)).abs() < error_margin`
234
234
235
235
error: strict comparison of `f32` or `f64`
236
-
--> tests/ui-toml/float_cmp/test.rs:281:21
236
+
--> tests/ui-toml/float_cmp/test.rs:286:21
237
237
|
238
238
LL | let _ = z.0 + 1.0 == z.0;
239
239
| ^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(z.0 + 1.0 - z.0).abs() < error_margin`
240
240
241
241
error: strict comparison of `f32` or `f64`
242
-
--> tests/ui-toml/float_cmp/test.rs:285:21
242
+
--> tests/ui-toml/float_cmp/test.rs:290:21
243
243
|
244
244
LL | let _ = *x + 1.0 == *x;
245
245
| ^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(*x + 1.0 - *x).abs() < error_margin`
246
246
247
247
error: strict comparison of `f32` or `f64`
248
-
--> tests/ui-toml/float_cmp/test.rs:286:21
248
+
--> tests/ui-toml/float_cmp/test.rs:291:21
249
249
|
250
250
LL | let _ = *x == *x + 1.0;
251
251
| ^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(*x - (*x + 1.0)).abs() < error_margin`
252
252
253
253
error: strict comparison of `f32` or `f64`
254
-
--> tests/ui-toml/float_cmp/test.rs:287:21
254
+
--> tests/ui-toml/float_cmp/test.rs:292:21
255
255
|
256
256
LL | let _ = *x == f1(*x);
257
257
| ^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(*x - f1(*x)).abs() < error_margin`
258
258
259
259
error: strict comparison of `f32` or `f64`
260
-
--> tests/ui-toml/float_cmp/test.rs:288:21
260
+
--> tests/ui-toml/float_cmp/test.rs:293:21
261
261
|
262
262
LL | let _ = f1(*x) == *x;
263
263
| ^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f1(*x) - *x).abs() < error_margin`
264
264
265
265
error: strict comparison of `f32` or `f64`
266
-
--> tests/ui-toml/float_cmp/test.rs:293:21
266
+
--> tests/ui-toml/float_cmp/test.rs:298:21
267
267
|
268
268
LL | let _ = x.next().unwrap() == x.next().unwrap() + 1.0;
269
269
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x.next().unwrap() - (x.next().unwrap() + 1.0)).abs() < error_margin`
270
270
271
271
error: strict comparison of `f32` or `f64`
272
-
--> tests/ui-toml/float_cmp/test.rs:309:21
272
+
--> tests/ui-toml/float_cmp/test.rs:314:21
273
273
|
274
274
LL | let _ = x.f() + 1.0 == x.f();
275
275
| ^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x.f() + 1.0 - x.f()).abs() < error_margin`
276
276
277
277
error: strict comparison of `f32` or `f64`
278
-
--> tests/ui-toml/float_cmp/test.rs:310:21
278
+
--> tests/ui-toml/float_cmp/test.rs:315:21
279
279
|
280
280
LL | let _ = x.f() == x.f() + 1.0;
281
281
| ^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x.f() - (x.f() + 1.0)).abs() < error_margin`
282
282
283
283
error: strict comparison of `f32` or `f64`
284
-
--> tests/ui-toml/float_cmp/test.rs:315:17
284
+
--> tests/ui-toml/float_cmp/test.rs:320:17
285
285
|
286
286
LL | let _ = f(1.0) == f(1.0) + 1.0;
287
287
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f(1.0) - (f(1.0) + 1.0)).abs() < error_margin`
288
288
289
289
error: strict comparison of `f32` or `f64`
290
-
--> tests/ui-toml/float_cmp/test.rs:319:17
290
+
--> tests/ui-toml/float_cmp/test.rs:324:17
291
291
|
292
292
LL | let _ = f(1.0) == f(1.0) + 1.0;
293
293
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(f(1.0) - (f(1.0) + 1.0)).abs() < error_margin`
0 commit comments