|
1 | 1 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2 |
| - --> $DIR/cmp_nan.rs:5:5 |
| 2 | + --> $DIR/cmp_nan.rs:8:5 |
3 | 3 | |
|
4 | 4 | LL | x == std::f32::NAN;
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::cmp-nan` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
10 |
| - --> $DIR/cmp_nan.rs:6:5 |
| 10 | + --> $DIR/cmp_nan.rs:9:5 |
11 | 11 | |
|
12 | 12 | LL | x != std::f32::NAN;
|
13 | 13 | | ^^^^^^^^^^^^^^^^^^
|
14 | 14 |
|
15 | 15 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
16 |
| - --> $DIR/cmp_nan.rs:7:5 |
| 16 | + --> $DIR/cmp_nan.rs:10:5 |
17 | 17 | |
|
18 | 18 | LL | x < std::f32::NAN;
|
19 | 19 | | ^^^^^^^^^^^^^^^^^
|
20 | 20 |
|
21 | 21 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
22 |
| - --> $DIR/cmp_nan.rs:8:5 |
| 22 | + --> $DIR/cmp_nan.rs:11:5 |
23 | 23 | |
|
24 | 24 | LL | x > std::f32::NAN;
|
25 | 25 | | ^^^^^^^^^^^^^^^^^
|
26 | 26 |
|
27 | 27 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
28 |
| - --> $DIR/cmp_nan.rs:9:5 |
| 28 | + --> $DIR/cmp_nan.rs:12:5 |
29 | 29 | |
|
30 | 30 | LL | x <= std::f32::NAN;
|
31 | 31 | | ^^^^^^^^^^^^^^^^^^
|
32 | 32 |
|
33 | 33 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
34 |
| - --> $DIR/cmp_nan.rs:10:5 |
| 34 | + --> $DIR/cmp_nan.rs:13:5 |
35 | 35 | |
|
36 | 36 | LL | x >= std::f32::NAN;
|
37 | 37 | | ^^^^^^^^^^^^^^^^^^
|
38 | 38 |
|
39 | 39 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
40 |
| - --> $DIR/cmp_nan.rs:13:5 |
| 40 | + --> $DIR/cmp_nan.rs:14:5 |
| 41 | + | |
| 42 | +LL | x == NAN_F32; |
| 43 | + | ^^^^^^^^^^^^ |
| 44 | + |
| 45 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 46 | + --> $DIR/cmp_nan.rs:15:5 |
| 47 | + | |
| 48 | +LL | x != NAN_F32; |
| 49 | + | ^^^^^^^^^^^^ |
| 50 | + |
| 51 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 52 | + --> $DIR/cmp_nan.rs:16:5 |
| 53 | + | |
| 54 | +LL | x < NAN_F32; |
| 55 | + | ^^^^^^^^^^^ |
| 56 | + |
| 57 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 58 | + --> $DIR/cmp_nan.rs:17:5 |
| 59 | + | |
| 60 | +LL | x > NAN_F32; |
| 61 | + | ^^^^^^^^^^^ |
| 62 | + |
| 63 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 64 | + --> $DIR/cmp_nan.rs:18:5 |
| 65 | + | |
| 66 | +LL | x <= NAN_F32; |
| 67 | + | ^^^^^^^^^^^^ |
| 68 | + |
| 69 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 70 | + --> $DIR/cmp_nan.rs:19:5 |
| 71 | + | |
| 72 | +LL | x >= NAN_F32; |
| 73 | + | ^^^^^^^^^^^^ |
| 74 | + |
| 75 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 76 | + --> $DIR/cmp_nan.rs:22:5 |
41 | 77 | |
|
42 | 78 | LL | y == std::f64::NAN;
|
43 | 79 | | ^^^^^^^^^^^^^^^^^^
|
44 | 80 |
|
45 | 81 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
46 |
| - --> $DIR/cmp_nan.rs:14:5 |
| 82 | + --> $DIR/cmp_nan.rs:23:5 |
47 | 83 | |
|
48 | 84 | LL | y != std::f64::NAN;
|
49 | 85 | | ^^^^^^^^^^^^^^^^^^
|
50 | 86 |
|
51 | 87 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
52 |
| - --> $DIR/cmp_nan.rs:15:5 |
| 88 | + --> $DIR/cmp_nan.rs:24:5 |
53 | 89 | |
|
54 | 90 | LL | y < std::f64::NAN;
|
55 | 91 | | ^^^^^^^^^^^^^^^^^
|
56 | 92 |
|
57 | 93 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
58 |
| - --> $DIR/cmp_nan.rs:16:5 |
| 94 | + --> $DIR/cmp_nan.rs:25:5 |
59 | 95 | |
|
60 | 96 | LL | y > std::f64::NAN;
|
61 | 97 | | ^^^^^^^^^^^^^^^^^
|
62 | 98 |
|
63 | 99 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
64 |
| - --> $DIR/cmp_nan.rs:17:5 |
| 100 | + --> $DIR/cmp_nan.rs:26:5 |
65 | 101 | |
|
66 | 102 | LL | y <= std::f64::NAN;
|
67 | 103 | | ^^^^^^^^^^^^^^^^^^
|
68 | 104 |
|
69 | 105 | error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
70 |
| - --> $DIR/cmp_nan.rs:18:5 |
| 106 | + --> $DIR/cmp_nan.rs:27:5 |
71 | 107 | |
|
72 | 108 | LL | y >= std::f64::NAN;
|
73 | 109 | | ^^^^^^^^^^^^^^^^^^
|
74 | 110 |
|
75 |
| -error: aborting due to 12 previous errors |
| 111 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 112 | + --> $DIR/cmp_nan.rs:28:5 |
| 113 | + | |
| 114 | +LL | y == NAN_F64; |
| 115 | + | ^^^^^^^^^^^^ |
| 116 | + |
| 117 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 118 | + --> $DIR/cmp_nan.rs:29:5 |
| 119 | + | |
| 120 | +LL | y != NAN_F64; |
| 121 | + | ^^^^^^^^^^^^ |
| 122 | + |
| 123 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 124 | + --> $DIR/cmp_nan.rs:30:5 |
| 125 | + | |
| 126 | +LL | y < NAN_F64; |
| 127 | + | ^^^^^^^^^^^ |
| 128 | + |
| 129 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 130 | + --> $DIR/cmp_nan.rs:31:5 |
| 131 | + | |
| 132 | +LL | y > NAN_F64; |
| 133 | + | ^^^^^^^^^^^ |
| 134 | + |
| 135 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 136 | + --> $DIR/cmp_nan.rs:32:5 |
| 137 | + | |
| 138 | +LL | y <= NAN_F64; |
| 139 | + | ^^^^^^^^^^^^ |
| 140 | + |
| 141 | +error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead |
| 142 | + --> $DIR/cmp_nan.rs:33:5 |
| 143 | + | |
| 144 | +LL | y >= NAN_F64; |
| 145 | + | ^^^^^^^^^^^^ |
| 146 | + |
| 147 | +error: aborting due to 24 previous errors |
76 | 148 |
|
0 commit comments