]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/float_cmp_const.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / float_cmp_const.stderr
CommitLineData
f20569fa
XL
1error: strict comparison of `f32` or `f64` constant
2 --> $DIR/float_cmp_const.rs:16:5
3 |
4LL | 1f32 == ONE;
5 | ^^^^^^^^^^^ help: consider comparing them within some margin of error: `(1f32 - ONE).abs() < error_margin`
6 |
7 = note: `-D clippy::float-cmp-const` implied by `-D warnings`
8 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
9
10error: strict comparison of `f32` or `f64` constant
11 --> $DIR/float_cmp_const.rs:17:5
12 |
13LL | TWO == ONE;
14 | ^^^^^^^^^^ help: consider comparing them within some margin of error: `(TWO - ONE).abs() < error_margin`
15 |
16 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
17
18error: strict comparison of `f32` or `f64` constant
19 --> $DIR/float_cmp_const.rs:18:5
20 |
21LL | TWO != ONE;
22 | ^^^^^^^^^^ help: consider comparing them within some margin of error: `(TWO - ONE).abs() > error_margin`
23 |
24 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
25
26error: strict comparison of `f32` or `f64` constant
27 --> $DIR/float_cmp_const.rs:19:5
28 |
29LL | ONE + ONE == TWO;
30 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(ONE + ONE - TWO).abs() < error_margin`
31 |
32 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
33
34error: strict comparison of `f32` or `f64` constant
35 --> $DIR/float_cmp_const.rs:21:5
36 |
37LL | x as f32 == ONE;
38 | ^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x as f32 - ONE).abs() < error_margin`
39 |
40 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
41
42error: strict comparison of `f32` or `f64` constant
43 --> $DIR/float_cmp_const.rs:24:5
44 |
45LL | v == ONE;
46 | ^^^^^^^^ help: consider comparing them within some margin of error: `(v - ONE).abs() < error_margin`
47 |
48 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
49
50error: strict comparison of `f32` or `f64` constant
51 --> $DIR/float_cmp_const.rs:25:5
52 |
53LL | v != ONE;
54 | ^^^^^^^^ help: consider comparing them within some margin of error: `(v - ONE).abs() > error_margin`
55 |
56 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
57
58error: strict comparison of `f32` or `f64` constant arrays
59 --> $DIR/float_cmp_const.rs:57:5
60 |
61LL | NON_ZERO_ARRAY == NON_ZERO_ARRAY2;
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 |
64 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
65
66error: aborting due to 8 previous errors
67