2017-02-07 20:05:30 +00:00
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:18:5
|
|
|
|
|
|
|
|
|
18 | x == std::f32::NAN;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::cmp-nan` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:19:5
|
|
|
|
|
|
|
|
|
19 | x != std::f32::NAN;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:20:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
20 | x < std::f32::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:21:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
21 | x > std::f32::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:22:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
22 | x <= std::f32::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:23:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
23 | x >= std::f32::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:26:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
26 | y == std::f64::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:27:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
27 | y != std::f64::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:28:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
28 | y < std::f64::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:29:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
29 | y > std::f64::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:30:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
30 | y <= std::f64::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/cmp_nan.rs:31:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
31 | y >= std::f64::NAN;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
|