fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: manually checking if a float is infinite 2 --> $DIR/manual_float_methods.rs:23:8 3 | 4LL | if x == f32::INFINITY || x == f32::NEG_INFINITY {} 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the dedicated method instead: `x.is_infinite()` 6 | 7 = note: `-D clippy::manual-is-infinite` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::manual_is_infinite)]` 9 10error: manually checking if a float is finite 11 --> $DIR/manual_float_methods.rs:24:8 12 | 13LL | if x != f32::INFINITY && x != f32::NEG_INFINITY {} 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | 16 = note: `-D clippy::manual-is-finite` implied by `-D warnings` 17 = help: to override `-D warnings` add `#[allow(clippy::manual_is_finite)]` 18help: use the dedicated method instead 19 | 20LL | if x.is_finite() {} 21 | ~~~~~~~~~~~~~ 22help: this will alter how it handles NaN; if that is a problem, use instead 23 | 24LL | if x.is_finite() || x.is_nan() {} 25 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 26help: or, for conciseness 27 | 28LL | if !x.is_infinite() {} 29 | ~~~~~~~~~~~~~~~~ 30 31error: manually checking if a float is infinite 32 --> $DIR/manual_float_methods.rs:25:8 33 | 34LL | if x == INFINITE || x == NEG_INFINITE {} 35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the dedicated method instead: `x.is_infinite()` 36 37error: manually checking if a float is finite 38 --> $DIR/manual_float_methods.rs:26:8 39 | 40LL | if x != INFINITE && x != NEG_INFINITE {} 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 42 | 43help: use the dedicated method instead 44 | 45LL | if x.is_finite() {} 46 | ~~~~~~~~~~~~~ 47help: this will alter how it handles NaN; if that is a problem, use instead 48 | 49LL | if x.is_finite() || x.is_nan() {} 50 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 51help: or, for conciseness 52 | 53LL | if !x.is_infinite() {} 54 | ~~~~~~~~~~~~~~~~ 55 56error: manually checking if a float is infinite 57 --> $DIR/manual_float_methods.rs:28:8 58 | 59LL | if x == f64::INFINITY || x == f64::NEG_INFINITY {} 60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the dedicated method instead: `x.is_infinite()` 61 62error: manually checking if a float is finite 63 --> $DIR/manual_float_methods.rs:29:8 64 | 65LL | if x != f64::INFINITY && x != f64::NEG_INFINITY {} 66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 67 | 68help: use the dedicated method instead 69 | 70LL | if x.is_finite() {} 71 | ~~~~~~~~~~~~~ 72help: this will alter how it handles NaN; if that is a problem, use instead 73 | 74LL | if x.is_finite() || x.is_nan() {} 75 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 76help: or, for conciseness 77 | 78LL | if !x.is_infinite() {} 79 | ~~~~~~~~~~~~~~~~ 80 81error: aborting due to 6 previous errors 82