99 lines
2.9 KiB
Plaintext
99 lines
2.9 KiB
Plaintext
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:8:5
|
||
|
|
|
||
|
8 | x == std::f32::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:9:5
|
||
|
|
|
||
|
9 | x != std::f32::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:10:5
|
||
|
|
|
||
|
10 | x < std::f32::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:11:5
|
||
|
|
|
||
|
11 | x > std::f32::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:12:5
|
||
|
|
|
||
|
12 | x <= std::f32::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:13:5
|
||
|
|
|
||
|
13 | x >= std::f32::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:16:5
|
||
|
|
|
||
|
16 | y == std::f64::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:17:5
|
||
|
|
|
||
|
17 | y != std::f64::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:18:5
|
||
|
|
|
||
|
18 | y < std::f64::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:19:5
|
||
|
|
|
||
|
19 | y > std::f64::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:20:5
|
||
|
|
|
||
|
20 | y <= std::f64::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: doomed comparison with NAN, use `std::{f32,f64}::is_nan()` instead
|
||
|
--> $DIR/cmp_nan.rs:21:5
|
||
|
|
|
||
|
21 | y >= std::f64::NAN; //~ERROR doomed comparison with NAN
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: #[deny(cmp_nan)] on by default
|
||
|
|
||
|
error: aborting due to 12 previous errors
|
||
|
|