|
1 | | -error: strict comparison of `f32` or `f64` constant |
2 | | - --> tests/ui/float_cmp_const.rs:15:5 |
| 1 | +error: strict comparison of floating point constant |
| 2 | + --> tests/ui/float_cmp_const.rs:17:5 |
3 | 3 | | |
4 | 4 | LL | 1f32 == ONE; |
5 | 5 | | ^^^^^^^^^^^ help: consider comparing them within some margin of error: `(1f32 - ONE).abs() < error_margin` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::float-cmp-const` implied by `-D warnings` |
8 | 8 | = help: to override `-D warnings` add `#[allow(clippy::float_cmp_const)]` |
9 | 9 |
|
10 | | -error: strict comparison of `f32` or `f64` constant |
11 | | - --> tests/ui/float_cmp_const.rs:18:5 |
| 10 | +error: strict comparison of floating point constant |
| 11 | + --> tests/ui/float_cmp_const.rs:20:5 |
12 | 12 | | |
13 | 13 | LL | TWO == ONE; |
14 | 14 | | ^^^^^^^^^^ help: consider comparing them within some margin of error: `(TWO - ONE).abs() < error_margin` |
15 | 15 |
|
16 | | -error: strict comparison of `f32` or `f64` constant |
17 | | - --> tests/ui/float_cmp_const.rs:21:5 |
| 16 | +error: strict comparison of floating point constant |
| 17 | + --> tests/ui/float_cmp_const.rs:23:5 |
18 | 18 | | |
19 | 19 | LL | TWO != ONE; |
20 | 20 | | ^^^^^^^^^^ help: consider comparing them within some margin of error: `(TWO - ONE).abs() > error_margin` |
21 | 21 |
|
22 | | -error: strict comparison of `f32` or `f64` constant |
23 | | - --> tests/ui/float_cmp_const.rs:24:5 |
| 22 | +error: strict comparison of floating point constant |
| 23 | + --> tests/ui/float_cmp_const.rs:26:5 |
24 | 24 | | |
25 | 25 | LL | ONE + ONE == TWO; |
26 | 26 | | ^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(ONE + ONE - TWO).abs() < error_margin` |
27 | 27 |
|
28 | | -error: strict comparison of `f32` or `f64` constant |
29 | | - --> tests/ui/float_cmp_const.rs:28:5 |
| 28 | +error: strict comparison of floating point constant |
| 29 | + --> tests/ui/float_cmp_const.rs:30:5 |
30 | 30 | | |
31 | 31 | LL | x as f32 == ONE; |
32 | 32 | | ^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x as f32 - ONE).abs() < error_margin` |
33 | 33 |
|
34 | | -error: strict comparison of `f32` or `f64` constant |
35 | | - --> tests/ui/float_cmp_const.rs:32:5 |
| 34 | +error: strict comparison of floating point constant |
| 35 | + --> tests/ui/float_cmp_const.rs:34:5 |
36 | 36 | | |
37 | 37 | LL | v == ONE; |
38 | 38 | | ^^^^^^^^ help: consider comparing them within some margin of error: `(v - ONE).abs() < error_margin` |
39 | 39 |
|
40 | | -error: strict comparison of `f32` or `f64` constant |
41 | | - --> tests/ui/float_cmp_const.rs:35:5 |
| 40 | +error: strict comparison of floating point constant |
| 41 | + --> tests/ui/float_cmp_const.rs:37:5 |
42 | 42 | | |
43 | 43 | LL | v != ONE; |
44 | 44 | | ^^^^^^^^ help: consider comparing them within some margin of error: `(v - ONE).abs() > error_margin` |
45 | 45 |
|
46 | | -error: strict comparison of `f32` or `f64` constant arrays |
47 | | - --> tests/ui/float_cmp_const.rs:68:5 |
| 46 | +error: strict comparison of floating point constant arrays |
| 47 | + --> tests/ui/float_cmp_const.rs:70:5 |
48 | 48 | | |
49 | 49 | LL | NON_ZERO_ARRAY == NON_ZERO_ARRAY2; |
50 | 50 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
51 | 51 |
|
52 | | -error: aborting due to 8 previous errors |
| 52 | +error: strict comparison of floating point constant arrays |
| 53 | + --> tests/ui/float_cmp_const.rs:75:5 |
| 54 | + | |
| 55 | +LL | F16_NON_ZERO_ARRAY == F16_NON_ZERO_ARRAY2; |
| 56 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 57 | + |
| 58 | +error: strict comparison of floating point constant arrays |
| 59 | + --> tests/ui/float_cmp_const.rs:80:5 |
| 60 | + | |
| 61 | +LL | F128_NON_ZERO_ARRAY == F128_NON_ZERO_ARRAY2; |
| 62 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 63 | + |
| 64 | +error: aborting due to 10 previous errors |
53 | 65 |
|
0 commit comments