]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/cmp_nan.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / 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 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