]> git.lizzy.rs Git - rust.git/blob - tests/ui/cmp_nan.stderr
Merge pull request #2977 from flip1995/tool_lints
[rust.git] / tests / ui / cmp_nan.stderr
1 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
2  --> $DIR/cmp_nan.rs:8:5
3   |
4 8 |     x == std::f32::NAN;
5   |     ^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D clippy::cmp-nan` implied by `-D warnings`
8
9 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
10  --> $DIR/cmp_nan.rs:9:5
11   |
12 9 |     x != std::f32::NAN;
13   |     ^^^^^^^^^^^^^^^^^^
14
15 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
16   --> $DIR/cmp_nan.rs:10:5
17    |
18 10 |     x < std::f32::NAN;
19    |     ^^^^^^^^^^^^^^^^^
20
21 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
22   --> $DIR/cmp_nan.rs:11:5
23    |
24 11 |     x > std::f32::NAN;
25    |     ^^^^^^^^^^^^^^^^^
26
27 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
28   --> $DIR/cmp_nan.rs:12:5
29    |
30 12 |     x <= std::f32::NAN;
31    |     ^^^^^^^^^^^^^^^^^^
32
33 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
34   --> $DIR/cmp_nan.rs:13:5
35    |
36 13 |     x >= std::f32::NAN;
37    |     ^^^^^^^^^^^^^^^^^^
38
39 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
40   --> $DIR/cmp_nan.rs:16:5
41    |
42 16 |     y == std::f64::NAN;
43    |     ^^^^^^^^^^^^^^^^^^
44
45 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
46   --> $DIR/cmp_nan.rs:17:5
47    |
48 17 |     y != std::f64::NAN;
49    |     ^^^^^^^^^^^^^^^^^^
50
51 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
52   --> $DIR/cmp_nan.rs:18:5
53    |
54 18 |     y < std::f64::NAN;
55    |     ^^^^^^^^^^^^^^^^^
56
57 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
58   --> $DIR/cmp_nan.rs:19:5
59    |
60 19 |     y > std::f64::NAN;
61    |     ^^^^^^^^^^^^^^^^^
62
63 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
64   --> $DIR/cmp_nan.rs:20:5
65    |
66 20 |     y <= std::f64::NAN;
67    |     ^^^^^^^^^^^^^^^^^^
68
69 error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
70   --> $DIR/cmp_nan.rs:21:5
71    |
72 21 |     y >= std::f64::NAN;
73    |     ^^^^^^^^^^^^^^^^^^
74
75 error: aborting due to 12 previous errors
76