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